Commit graph

1300 commits

Author SHA1 Message Date
Earle F. Philhower, III
c0a606510c Clean up SPI library info 2021-03-16 22:11:16 -07:00
Earle F. Philhower, III
4ea383c0d7 Clean up SPI API, pin selection logic 2021-03-16 22:07:06 -07:00
Earle F. Philhower, III
ca7a219ee9 Clean up SPI library, add info 2021-03-16 21:44:17 -07:00
Earle F. Philhower, III
9f25417036 Add working default Fade example 2021-03-16 18:12:50 -07:00
Earle F. Philhower, III
ff55ce5455 Fix incorrect attribution in tone.pio 2021-03-16 18:02:53 -07:00
Earle F. Philhower, III
fc929abf19 Add note about PIO use 2021-03-16 17:56:56 -07:00
Earle F. Philhower, III
0647955a93 Use PIO to generate Tones, too 2021-03-16 17:55:57 -07:00
Earle F. Philhower, III
62508fa98c Use one program per PIO, not per SM. Add RP2040 utils 2021-03-16 16:57:22 -07:00
Earle F. Philhower, III
65c81958f2 Windows upload fix, workaround pyserial quirk 2021-03-16 09:49:24 -07:00
Earle F. Philhower, III
ca99a6fa03 Merge branch 'master' of https://github.com/earlephilhower/arduino-pico 2021-03-16 09:30:14 -07:00
Earle F. Philhower, III
456e771501 Package pyserial up in toolchain 2021-03-16 09:29:39 -07:00
Earle F. Philhower, III
5ac0a175e1 Stop PIO PM on Servo detach 2021-03-16 09:26:45 -07:00
Earle F. Philhower, III
660fe19fec Fix Windows compile/elf2uf2 errors
Windows is case-insensitive, causing "String.h" to override "string.h" in
includes.  Adjust the platform.txt appropriately.

Rebuild elf2uf2 as static to avoid startup errors on Windows boxes w/o MinGW.
2021-03-16 08:53:50 -07:00
Earle F. Philhower, III
d4427f87ce Add Servo library support, driven by the PIO SMs 2021-03-15 20:11:10 -07:00
Earle F. Philhower, III
912e010d3e Add tone and noTone support 2021-03-15 13:20:34 -07:00
Earle F. Philhower, III
68b656a55e Update USB serial to be a HW Serial 2021-03-13 12:22:41 -08:00
Earle F. Philhower, III
d47e5f52be Update working list 2021-03-13 12:14:09 -08:00
Earle F. Philhower, III
f6fcfd147b Add hardware Serial UARTs 2021-03-13 10:24:18 -08:00
Earle F. Philhower, III
afce691957 Add pulseIn/pulseInLong support 2021-03-13 09:09:48 -08:00
Earle F. Philhower, III
77e54882a6 Use package4s python3 interpreter across OSes 2021-03-12 21:50:49 -08:00
Earle F. Philhower, III
c319b79328 Remove hardcoded path 2021-03-12 21:34:35 -08:00
Earle F. Philhower, III
1caca1ec61 Add full OS support toolchain (ARM, MAC, WIN, LINUX) 2021-03-12 21:30:33 -08:00
Earle F. Philhower, III
129e59ab3c Add EEPROM library, using last flash sector 2021-03-12 19:38:14 -08:00
Earle F. Philhower, III
f785f360a9 Fix and test I2C/Wire, works now 2021-03-12 17:39:57 -08:00
Earle F. Philhower, III
42347d6bdc Update README with working stuff 2021-03-12 17:17:41 -08:00
Earle F. Philhower, III
76390705a5 Fix C++ type conflicts 2021-03-12 17:03:29 -08:00
Earle F. Philhower, III
ceef9c22f0 Add shiftIn and shiftOut 2021-03-12 16:14:58 -08:00
Earle F. Philhower, III
c30cb6d2f5 Add millis, micros, yield,SPI pin macros
Allows SdFat to compile cleanly, probably other SPI libraries.
2021-03-12 14:02:43 -08:00
Earle F. Philhower, III
4924cd9d35 Add I2C master support library 2021-03-12 13:23:27 -08:00
Earle F. Philhower, III
b3dad2ba62 Cleanup, add licenses to all files 2021-03-05 22:09:05 -08:00
Earle F. Philhower, III
0d8a475b6c Merge branch 'master' of https://github.com/earlephilhower/arduino-pico 2021-03-05 21:45:31 -08:00
Earle F. Philhower, III
93d194b0ac Add hardware SPI support
SPI = spi0, SPI1 = spi1
2021-03-05 21:44:40 -08:00
Earle F. Philhower, III
9496854291
Merge pull request #1 from earlephilhower/add-license-1
Create LICENSE
2021-03-02 17:56:45 -08:00
Earle F. Philhower, III
f9d0cb14ee
Create LICENSE 2021-03-02 17:56:36 -08:00
Earle F. Philhower, III
e4fa157077 Add USB PID/VID so IDE can auto-identify RPI Pico
Add in the USB ID to allow the Raspberry Pi Pico to be identified thru
the emulated serial (CDC ACM) port.
2021-03-01 15:28:35 -08:00
Earle F. Philhower, III
4ac271af72 Automatic script upload working, no buttons or fiddling
Add smarts to the UF2 uploader to potentially trigger a reboot if the
device passed in is /dev/tty* or COM*.  Will cause reboot to USB
bootloader and standard UF2 upload will happen w/o any user
intervention.
2021-02-26 19:16:03 -08:00
Earle F. Philhower, III
77d7a26428 Reboot directly into USB bootloader on Serial reset 2021-02-26 18:47:39 -08:00
Earle F. Philhower, III
e0e0d9e115 Reboot using Arduino standard 1200bps/DTR=0
Allow the IDE to cause the chip to reboot when the Serial port is active
and the baud is set to 1200 followed by a DTR toggle.  The user still
needs to hold the BOOTSEL button to enable the UF2 boot, for now.
2021-02-26 18:31:15 -08:00
Earle F. Philhower, III
ded383ed42 Use variants/generic to define pins 2021-02-26 13:05:29 -08:00
Earle F. Philhower, III
2c927d2bcb Add analogRead and A0...A3 pins 2021-02-26 12:42:59 -08:00
Earle F. Philhower, III
899f679986 Add millis() support 2021-02-25 19:04:15 -08:00
Earle F. Philhower, III
1c9e565833 Add API dir to include path
Things like Print.h and String.h live in cores/XXX/api now, make sure
GCC includes that path by default.
2021-02-25 18:57:40 -08:00
Earle F. Philhower, III
369dea88ba Add Serial(USB) support
Serial via USB /dev/ttyACM0 now works using standalone minicom terminal
app but not via the IDE's serial monitor.
2021-02-25 17:07:42 -08:00
Earle F. Philhower, III
e95f45ad10
Update README.md 2021-02-25 08:51:46 -08:00
Earle F. Philhower, III
87bd64cf2a Add package.json and tools listing 2021-02-24 21:34:29 -08:00
Earle F. Philhower, III
b109c29eef Merge branch 'master' of https://github.com/earlephilhower/arduino-pico 2021-02-24 20:54:42 -08:00
Earle F. Philhower, III
5b39b53818
Update README.md 2021-02-24 20:54:35 -08:00
Earle F. Philhower, III
b8fbbb0fe4 Remove hardcoded paths for includes 2021-02-24 20:45:10 -08:00
Earle F. Philhower, III
30b83d0442
Create README.md 2021-02-24 20:39:46 -08:00
Earle F. Philhower, III
44c586795b Initial commit, basic sanity
Some paths hardcoded to my custom toolchain build dir, will be updated
to a package.json tools setup soon.
https://github.com/earlephilhower/pico-quick-toolchain

Blink and Fade examples work (i.e. digitalWrite/analogWrite/delay).

Includes a discovery script which will detect RPI Picos in UF2 bootmode.
2021-02-24 20:31:13 -08:00