Using the switch
#1
Posted 26 October 2011 - 08:11 PM
#2
Posted 26 October 2011 - 08:30 PM
-- H.L. Mencken, "What I Believe"
#3
Posted 26 October 2011 - 09:48 PM
"Dx" stands for "digital" and "Ax" for "analog", this is naming convention of Netduino header pins (compatible with Arduino). The microcontroller has two ports named PA and PB, individual bits are numbered in .NET Micro Framework PA0 = 0, PA1 = 1,... PA31 = 31, PB0 = 32, PB1 = 33 etc. Thus, the onboard LED on PB23 = 23 + 32 = 55 and pin "D2" on PA0 = 0.Why is ONBOARD_LED defined as 55 ? It is on port PB23.
I also tried to look at GPIO_PIN_D2 which is defined as 0.
But port D2 is not even on the device ??? It only has PA and PB.
The other numbers in the schematic (i.e. 81 for PA0, 82 for PA1, ..., 69 for PB23 etc.) denote package leads (resp. balls pads in case of Netduino Mini's TFBGA package).
#4
Posted 30 November 2011 - 01:42 AM
#5
Posted 01 December 2011 - 03:17 PM
The port number parameter data1 should match Netduino Pins enumeration:i have subscribed an event for an interruptport, event fires fine, but i cant identify what port is firing the event cause data 1 give me numbers that not match with de Pins enumerator.
... switch((Cpu.Pin)data1) { case Pins.GPIO_PIN_D0: ... break; case Pins.GPIO_PIN_D1: ... break; }Welcome to the community!
#6
Posted 18 September 2012 - 01:53 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users