I'm just setting up a circuitbrain deluxe board and have it successfully boot in both Circuit Pythn and Arduino (selecting M4 Metro SAMD51 board). In both IDEs I can successfully get the device to blink its on-board LED. However, I am unable to get any output from other digital pins or input from analog input pins in the Arduino IDE.
In Arduino
Code: Select all
digitalWrite(4,HIGH);
In CircuitPython
An
Code: Select all
led = digitalio.DigitalInOut(board.D13)
Code: Select all
led = digitalio.DigitalInOut(board.LED)
However, D13 does not turn the built in LED on via the Arduino IDE. In that IDE it is D4 that controls that onboard LED which is odd.
In both cases I have a second LED (tested on another board to make sure it works) wired to D12 and in CircuitPython this works but in the Arduino IDE it does not.
The wiring of the USB is using an Adafruit USB-Micro B breakout board and is wired
5V - Vin (on circuitBrain)
GND -GND
D- to D-
D+ - D+
id left disconnected
I notice the CircuitBrain has a 3.3V output pin. Are the IO pins 3.3V logic? Or is Metro M4 not really a suitable baord to select due to different pin mapping? Is there a more ideal one?
Is there something else I am missing?
Any pointers much appreciated as ideally I would like to use Arduino over CircuitPython to program the device.