adafruit / circuitpython

CircuitPython - a Python implementation for teaching coding with microcontrollers
https://circuitpython.org
MIT License
3.97k stars 1.16k forks source link

Feather M4 Express has no pin D6 but has D7 #2708

Closed hybotics closed 4 years ago

hybotics commented 4 years ago

The title pretty well says it all. There is no pin D6 on a Feather M4 Express. There is a pin D7 though. You might want to check the pins for the Feather M0 boards also.

hybotics commented 4 years ago

Pin D9 also seems to be affected.

dhalbert commented 4 years ago

board.D6 and board.D9 are defined: https://github.com/adafruit/circuitpython/blob/master/ports/atmel-samd/boards/feather_m4_express/pins.c. Maybe you installed the wrong .uf2 on your Feather M4? Which board is listed in boot_out.txt, or what shows up in the initial REPL prompt?

Adafruit CircuitPython 5.0.0 on 2020-03-02; Adafruit Feather M4 Express with samd51j19
>>> import board
>>> dir(board)
['__class__', 'A0', 'A1', 'A2', 'A3', 'A4', 'A5', 'BATTERY', 'D0', 'D1', 'D10', 'D11', 'D12', 'D13', 'D14', 'D15', 'D16', 'D17', 'D18', 'D19', 'D23', 'D24', 'D25', 'D4', 'D5', 'D6', 'D9', 'I2C', 'MISO', 'MOSI', 'NEOPIXEL', 'RX', 'SCK', 'SCL', 'SDA', 'SPI', 'TX', 'UART', 'VOLTAGE_MONITOR']
hybotics commented 4 years ago

You are right, of course. It is the ItsyBitsy that has D7, ACK.