Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide TFT_RST define #6

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
6907b3a
Linker tweaks for RAM-resident PicoDVI library functions
PaintYourDragon Jun 15, 2023
bccc2d5
Merge pull request #5 from adafruit/pb-dvi-link
PaintYourDragon Jun 15, 2023
1940088
Merge branch 'earlephilhower:master' into master
PaintYourDragon Jun 15, 2023
fc7419e
Merge branch 'earlephilhower:master' into master
PaintYourDragon Jun 16, 2023
eaf9b8c
Merge branch 'earlephilhower:master' into master
ladyada Jul 3, 2023
8327d8e
add metro rp2040
ladyada Jul 3, 2023
9e3eaec
Merge branch 'master' of github.com:adafruit/arduino-pico
ladyada Jul 3, 2023
4ef6629
Merge branch 'earlephilhower:master' into master
ladyada Jul 22, 2023
5f606d0
Merge branch 'master' of github.com:adafruit/arduino-pico
adafruit-adabot Jul 22, 2023
322700c
Merge branch 'earlephilhower:master' into master
ladyada Aug 3, 2023
b7209bf
Merge branch 'master' of github.com:adafruit/arduino-pico
ladyada Dec 23, 2023
d92116b
Merge branch 'earlephilhower:master' into master
ladyada Feb 3, 2024
db43d20
Merge branch 'master' of github.com:adafruit/arduino-pico
ladyada Feb 3, 2024
c632b5c
floppsy init
ladyada Feb 3, 2024
08a3342
add flopsy
ladyada Feb 3, 2024
4be04d1
Merge branch 'earlephilhower:master' into master
ladyada Feb 21, 2024
e7ed605
add floppsy var
ladyada Feb 21, 2024
e405e08
Merge branch 'master' of github.com:adafruit/arduino-pico
ladyada Feb 21, 2024
e245f74
we can sniff the SD_CD pin for TX till rev B
ladyada Mar 2, 2024
5606d5a
Provide TFT_RST define
jepler Mar 7, 2024
94a43bc
There is no LED
jepler Mar 7, 2024
480a5ab
floppsy: Remove PIN_LED entirely
jepler Mar 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
800 changes: 800 additions & 0 deletions boards.txt

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions package/package_pico_index.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,18 @@
{
"name": "Adafruit MacroPad RP2040"
},
{
"name": "Adafruit Metro RP2040"
},
{
"name": "Adafruit KB2040"
},
{
"name": "Adafruit Pyrate"
},
{
"name": "Adafruit Floppsy"
},
{
"name": "Arduino Nano RP2040 Connect"
},
Expand Down
56 changes: 56 additions & 0 deletions tools/json/adafruit_floppsy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"build": {
"arduino": {
"earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x239A",
"usb_pid": "0x8151"
}
},
"core": "earlephilhower",
"cpu": "cortex-m0plus",
"extra_flags": "-D ARDUINO_ADAFRUIT_FLOPPSY_RP2040 -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250",
"f_cpu": "133000000L",
"hwids": [
[
"0x2E8A",
"0x00C0"
],
[
"0x239A",
"0x8151"
]
],
"mcu": "rp2040",
"variant": "adafruit_floppsy"
},
"debug": {
"jlink_device": "RP2040_M0_0",
"openocd_target": "rp2040.cfg",
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
],
"name": "Floppsy",
"upload": {
"maximum_ram_size": 270336,
"maximum_size": 16777216,
"require_upload_port": true,
"native_usb": true,
"use_1200bps_touch": true,
"wait_for_upload_port": false,
"protocol": "picotool",
"protocols": [
"blackmagic",
"cmsis-dap",
"jlink",
"raspberrypi-swd",
"picotool",
"picoprobe",
"pico-debug"
]
},
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
"vendor": "Adafruit"
}
56 changes: 56 additions & 0 deletions tools/json/adafruit_metro_rp2040.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"build": {
"arduino": {
"earlephilhower": {
"boot2_source": "boot2_w25q080_2_padded_checksum.S",
"usb_vid": "0x239A",
"usb_pid": "0x813D"
}
},
"core": "earlephilhower",
"cpu": "cortex-m0plus",
"extra_flags": "-D ARDUINO_ADAFRUIT_METRO_RP2040 -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250",
"f_cpu": "133000000L",
"hwids": [
[
"0x2E8A",
"0x00C0"
],
[
"0x239A",
"0x813D"
]
],
"mcu": "rp2040",
"variant": "adafruit_metro_rp2040"
},
"debug": {
"jlink_device": "RP2040_M0_0",
"openocd_target": "rp2040.cfg",
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
],
"name": "Metro RP2040",
"upload": {
"maximum_ram_size": 270336,
"maximum_size": 8388608,
"require_upload_port": true,
"native_usb": true,
"use_1200bps_touch": true,
"wait_for_upload_port": false,
"protocol": "picotool",
"protocols": [
"blackmagic",
"cmsis-dap",
"jlink",
"raspberrypi-swd",
"picotool",
"picoprobe",
"pico-debug"
]
},
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
"vendor": "Adafruit"
}
3 changes: 3 additions & 0 deletions tools/makeboards.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,10 @@ def MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, f
MakeBoard("adafruit_stemmafriend", "Adafruit", "STEMMA Friend RP2040", "0x239a", "0x80e3", 250, "ADAFRUIT_STEMMAFRIEND_RP2040", 8, "boot2_w25q080_2_padded_checksum")
MakeBoard("adafruit_trinkeyrp2040qt", "Adafruit", "Trinkey RP2040 QT", "0x239a", "0x8109", 250, "ADAFRUIT_TRINKEYQT_RP2040", 8, "boot2_w25q080_2_padded_checksum")
MakeBoard("adafruit_macropad2040", "Adafruit", "MacroPad RP2040", "0x239a", "0x8107", 250, "ADAFRUIT_MACROPAD_RP2040", 8, "boot2_w25q080_2_padded_checksum")
MakeBoard("adafruit_metro_rp2040", "Adafruit", "Metro RP2040", "0x239a", "0x813D", 250, "ADAFRUIT_METRO_RP2040", 8, "boot2_w25q080_2_padded_checksum")
MakeBoard("adafruit_kb2040", "Adafruit", "KB2040", "0x239a", "0x8105", 250, "ADAFRUIT_KB2040_RP2040", 8, "boot2_w25q080_2_padded_checksum")
MakeBoard("adafruit_pyrate", "Adafruit", "Pyrate", "0x239a", "0x8139", 250, "ADAFRUIT_PYRATE_RP2040", 8, "boot2_w25q080_2_padded_checksum")
MakeBoard("adafruit_floppsy", "Adafruit", "Floppsy", "0x239a", "0x8151", 250, "ADAFRUIT_FLOPPSY_RP2040", 16, "boot2_w25q080_2_padded_checksum")

# Arduino
MakeBoard("arduino_nano_connect", "Arduino", "Nano RP2040 Connect", "0x2341", ["0x005e", "0x805e", "0x015e", "0x025e"] , 250, "NANO_RP2040_CONNECT", 16, "boot2_w25q080_2_padded_checksum")
Expand Down
68 changes: 68 additions & 0 deletions variants/adafruit_floppsy/pins_arduino.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#pragma once

// NeoPixel
#define PIN_NEOPIXEL (15u)

// SD Card
#define PIN_CARD_CS 23
#define PIN_CARD_DETECT 24

#define TFT_CS 29
#define TFT_DC 25
#define TFT_RESET -1
#define TFT_RST -1
#define TFT_BACKLIGHT 28

#define DENSITY_PIN 0 // IDC 2
#define INDEX_PIN 9 // IDC 8
#define SELECT_PIN 1 // IDC 12
#define MOTOR_PIN 2 // IDC 16
#define DIR_PIN 3 // IDC 18
#define STEP_PIN 4 // IDC 20
#define WRDATA_PIN 5 // IDC 22 (not used during read)
#define WRGATE_PIN 6 // IDC 24 (not used during read)
#define TRK0_PIN 10 // IDC 26
#define PROT_PIN 11 // IDC 28
#define READ_PIN 12 // IDC 30
#define SIDE_PIN 7 // IDC 32
#define READY_PIN 13 // IDC 34

#define FLOPPY_DIRECTION_PIN 8

// Serial
#define PIN_SERIAL1_TX (24u)
#define PIN_SERIAL1_RX (21u)
#define __SERIAL1_DEVICE uart1

// Not pinned out
#define PIN_SERIAL2_TX (31u)
#define PIN_SERIAL2_RX (31u)

// SPI
#define PIN_SPI0_SCK (18u)
#define PIN_SPI0_MOSI (19u)
#define PIN_SPI0_MISO (20u)
#define PIN_SPI0_SS (23u)
#define __SPI0_DEVICE spi0

// Not pinned out
#define PIN_SPI1_MISO (31u)
#define PIN_SPI1_MOSI (27u)
#define PIN_SPI1_SCK (26u)
#define PIN_SPI1_SS (29u)
#define __SPI1_DEVICE spi1

// Wire
#define PIN_WIRE0_SDA (16u)
#define PIN_WIRE0_SCL (17u)
#define __WIRE0_DEVICE i2c0

#define PIN_WIRE1_SDA (31u)
#define PIN_WIRE1_SCL (31u)
#define __WIRE1_DEVICE i2c1

#define SERIAL_HOWMANY (2u)
#define SPI_HOWMANY (2u)
#define WIRE_HOWMANY (1u)

#include "../generic/common.h"
48 changes: 48 additions & 0 deletions variants/adafruit_metro_rp2040/pins_arduino.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#pragma once

// LEDs
#define PIN_LED (13u)

// NeoPixel
#define PIN_NEOPIXEL (14u)

// DVI connector
#define PIN_CARD_CS 23
#define PIN_CARD_DETECT 15

// Serial
#define PIN_SERIAL1_TX (0u)
#define PIN_SERIAL1_RX (1u)

// Not pinned out
#define PIN_SERIAL2_TX (31u)
#define PIN_SERIAL2_RX (31u)

// SPI
#define PIN_SPI0_MISO (20u)
#define PIN_SPI0_MOSI (19u)
#define PIN_SPI0_SCK (18u)
#define PIN_SPI0_SS (23u)
#define __SPI0_DEVICE spi0

// Not pinned out
#define PIN_SPI1_MISO (31u)
#define PIN_SPI1_MOSI (31u)
#define PIN_SPI1_SCK (31u)
#define PIN_SPI1_SS (31u)
#define __SPI1_DEVICE spi1

// Wire
#define PIN_WIRE0_SDA (16u)
#define PIN_WIRE0_SCL (17u)
#define __WIRE0_DEVICE i2c0

#define PIN_WIRE1_SDA (31u)
#define PIN_WIRE1_SCL (31u)
#define __WIRE1_DEVICE i2c1

#define SERIAL_HOWMANY (2u)
#define SPI_HOWMANY (1u)
#define WIRE_HOWMANY (1u)

#include "../generic/common.h"