Cerbuino Bee / Pin assigment

it took me a while to realize there is a seperate mainboard class GHIElectronics.Gadgeteer.FEZCerbuinoBee,
but does Cerbuino Bee share the GHI.OSHW.Hardware.FEZCerberus class for pin assignments?

I’m so far not able to read or write any of the arduino compatable pins


public static OutputPort led = new OutputPort((Cpu.Pin)FEZCerberus.Pin.PD8, true); 

with a 100Ohm resistor & LED not producing anything. power and ground otherwise fine off the board.

I’m stumped on something which should be pretty straighforward.

Yes. Look at the schematics and you will see which arduino compatible pins are connected to which CPU pin. I have tested a LED blink using pin named D0 and FEZCerberus.Pin.PB11.

Thanks, I’ll make an enum of digital pins to their proper asignments to match the silkscreen.
I just want to identify pin D8 as ‘D8’ and not PC4.

We will be adding this to next release.

Here’s what I’m using


namespace Cerbuino
{
    public class Pins
    {
        public const Cpu.Pin D0 = (Cpu.Pin)0x1B; // PB11/I2C2_SDA/UART3_RX
        public const Cpu.Pin D1 = (Cpu.Pin)0x1A; // PB10/I2C2_SCL/SPI2_SCK/UART3_TX
        public const Cpu.Pin D2 = (Cpu.Pin)0x1C; // PB12/CAN2_RX
        public const Cpu.Pin D3 = (Cpu.Pin)0x2E; // PC14/XO32
        public const Cpu.Pin D4 = (Cpu.Pin)0x2F; // PC15/XI32
        public const Cpu.Pin D5 = (Cpu.Pin)0x08; // PA8/MC01/PWM
        public const Cpu.Pin D6 = (Cpu.Pin)0x0A; // PA10/LOADER1U2/PWM
        public const Cpu.Pin D7 = (Cpu.Pin)0x24; // PC4/ADC12_IN14
        public const Cpu.Pin D8 = (Cpu.Pin)0x1D; // PB13/SP2_SCK/CAN2_TX/PWM
        public const Cpu.Pin D9 = (Cpu.Pin)0x09; // PA9/VBUS
        public const Cpu.Pin D10 = (Cpu.Pin)0x0F; // PA15/J_TDI/PWM/SP1_SSEL
        public const Cpu.Pin D11 = (Cpu.Pin)0x15; // PB5/CAN2_RX/PWM/SP1_MOSI
        public const Cpu.Pin D12 = (Cpu.Pin)0x14; // PB4/J_TRST/PWM/SP1_MISO
        public const Cpu.Pin D13 = (Cpu.Pin)0x13; // PB3/J_TDO/PWM/SPI1_SCK

        public const Cpu.Pin A0 = (Cpu.Pin)0x11; // PB1/ADC12_IN9
        public const Cpu.Pin A1 = (Cpu.Pin)0x05; // PA5/SPI1_SCK/ADC12_IN5/DAC2
        public const Cpu.Pin A2 = (Cpu.Pin)0x10; // PB0/ADC12_IN8
        public const Cpu.Pin A3 = (Cpu.Pin)0x23; // PC3/ADC123_IN13/SPI2_MOSI
        public const Cpu.Pin A4 = (Cpu.Pin)0x21; // PC1/ADC123_IN11
        public const Cpu.Pin A5 = (Cpu.Pin)0x04; // PA4/SP1_SSEL/ADC12_IN14/DAC1
    }
}

Note: corrected D0

@ davervw - look at my post. We have a mismatch.

Corrected. Those schematic pin names are overlapping in the PDF. Wishing for an easier to read schematic.

And add the following:

public const Cpu.Pin LED = (Cpu.Pin)0x12; // PB2/BOOT1

Onboard SD Detect

public const Cpu.Pin SDDetect = (Cpu.Pin)0x22; // SD Detect

This info should be in the wiki?