Earle F. Philhower, III
47c12047da
Remove api from include path, add redirects
...
Can't have cores/rp2040/api in the include path because the Arduino API
dir has a "String.h" file. On Windows, because it is case-insensitive
normally, this overrides the POSIX "string.h" header leading to bad
stuff.
Add manual redirect includes for commonly accessed headers in the
cores/rp2040 path instead.
2021-04-09 05:38:35 -07:00
Earle F. Philhower, III
323099069e
Fix JSON, Arduino 2.0 beta
...
Missing Size field was causing the Arduino 2.0 beta to reject the JSON.
2021-04-08 18:10:01 -07:00
Earle F. Philhower, III
8fed1ccf97
Add HAVE_HWSERIALX and api/dir to include path ( #94 )
...
Fixes #93
2021-04-08 05:43:51 -07:00
Earle F. Philhower, III
19552151f2
Fix Picoprobe USB PID
...
Thanks to @me-no-dev for pointing out that the Picoprobe does UART
passthrough!
2021-04-06 20:51:21 -07:00
Earle F. Philhower, III
af1d595e71
More documentation cleanup
2021-04-06 16:00:57 -07:00
Earle F. Philhower, III
735c14acc7
Clean up documentation
2021-04-06 15:49:56 -07:00
Earle F. Philhower, III
952f04df1f
Update install document formatting
2021-04-06 12:15:40 -07:00
Earle F. Philhower, III
6b63f71ca4
Update README.md
2021-04-06 12:12:26 -07:00
Earle F. Philhower, III
85a79104b6
Allow misaligned pgm_read_XXX macro reads ( #81 )
...
Update the ArduinoAPI with new macros/inlines that allow accessing
values that are not naturally aligned (i.e. an int at address 0x0001).
Fixes #79
2021-04-06 12:08:26 -07:00
Earle F. Philhower, III
bbac9d4b96
Add full-fledged documentation, update I2S API ( #80 )
...
Last step before 1.0. Docs for readthedocs.io.
Update the I2S API to mimic others where `setXXX` is called before
`begin()` to set the GPIO pins used.
2021-04-06 08:01:45 -07:00
Earle F. Philhower, III
84a9273b3b
Add'l demos
2021-04-03 07:34:27 -07:00
Earle F. Philhower, III
c1ab2b7352
Update FLASH_SIZE_BYTES to avoid assert on > 2MB
...
The SDK would assert if a flash write/erase happened past the end of the
flash space it was built with. So, 8MB chips would crash when accessing
offset 3MB, for example.
Avoid this by specifying the maximum flash available so the SDK won't
trip.
Fixes #76
2021-04-02 23:54:34 -07:00
Earle F. Philhower, III
d48aafaf24
Add licenses to README.md
2021-04-02 20:36:04 -07:00
Earle F. Philhower, III
4e50fe866a
Add LittleFS, SD, and SDFS Filesystems and File:: interface ( #49 )
...
Pull in the ESP8266 File/Dir/etc. filesystem and port LittleFS
and SD/SDFS to the RP2040.
See https://arduino-esp8266.readthedocs.io/en/latest/filesystem.html
for more information
2021-04-02 17:46:12 -07:00
Earle F. Philhower, III
1eb48f724d
Add I2S output support and I2S class/library ( #73 )
...
Using the PIO-driven I2S from pico-extras, add I2S output support.
Be sure to `git submodule update --init` to get the new directories.
2021-04-02 16:21:36 -07:00
Earle F. Philhower, III
29f272e9ca
Clear up FS menus
...
Heise.de seems to have been confused by the menu options for the
filesystem/sketch selection. Explicitly list the Sketch and FS sizes in
each menu tem to avoid future confusion.
2021-04-02 16:19:14 -07:00
Earle F. Philhower, III
a536d9ce96
Update ArduionApi to include Print::printf
...
Instead of duplicating output call in all children, fork ArduinoApi and
add it in the Print base class.
2021-04-02 12:58:26 -07:00
Earle F. Philhower, III
e98fac6e82
Merge branch 'master' of https://github.com/earlephilhower/arduino-pico
2021-04-02 12:41:15 -07:00
Scott Smith
ed29fc539c
Correct analogReadTemp KEYWORD ( #75 )
...
reference: cores/rp2040/wiring_analog.cpp:108:extern "C" float analogReadTemp()
2021-04-02 11:36:20 -07:00
Earle F. Philhower, III
8d8236983a
Allow initVariant()
2021-04-02 08:53:59 -07:00
Earle F. Philhower, III
118afd0f92
Add multicore include directory to path
2021-04-02 07:36:44 -07:00
Earle F. Philhower, III
c35cc02aa0
Enable debug symbols in libpico.a
2021-03-31 15:32:29 -07:00
Earle F. Philhower, III
7bfffed649
Move Adafruit Feather RP2040 to w25x10cl_4
...
Testing in #42 . Thanks @blurfl!
2021-03-31 14:11:24 -07:00
Earle F. Philhower, III
09268fe064
Add multiple boot2 options with /2 and /4 SPI div ( #67 )
...
Build all 4 different boot_stage2 objects with SPI/2 and SPI/4 options.
Add a menu to the generic board to allow selecting between them.
Use the potato/4 boot2 for the Adafruit Feather until we have a better
version verified.
Fixes #42
2021-03-31 12:42:51 -07:00
Earle F. Philhower, III
c988c1c8a4
Add debug prints on error conditions to the core
2021-03-30 18:17:52 -07:00
Earle F. Philhower, III
96e31c640e
Add analogReadTemp() to get RP2040 core temp ( #63 )
2021-03-30 16:10:06 -07:00
Earle F. Philhower, III
d9a4bbd95c
Add ancient AVR compatibility macros ( #59 )
2021-03-30 11:57:01 -07:00
smischny
3d824aac31
Update wiring_analog.cpp ( #61 )
...
Fixed the calculation of the pwm clock divider to be the system clock hz divided by the product of the analog frequency and scale.
2021-03-30 10:46:58 -07:00
Earle F. Philhower, III
2418cf2743
Update README.md
2021-03-29 16:41:30 -07:00
Earle F. Philhower, III
e4fe1fcf02
Merge pull request #56 from earlephilhower/bootsel
...
Add BOOTSEL, allowing BOOTSEL use as a button
2021-03-29 16:19:47 -07:00
Earle F. Philhower, III
1124455627
Add BOOTSEL, allowing BOOTSEL use as a button
...
Since every board has a bootsel button, allow end users to read its
state with a simple `if (BOOTSEL)`. Uses code from the pico-examples.
2021-03-29 16:14:45 -07:00
Earle F. Philhower, III
481ee1c9cf
Merge pull request #55 from earlephilhower/openocd
...
Add picoprobe upload support, cleanup up boards
2021-03-29 13:13:19 -07:00
Earle F. Philhower, III
1290f72e3e
Add picoprobe upload support, cleanup up boards
2021-03-29 13:11:14 -07:00
Earle F. Philhower, III
8dcad984a1
Merge pull request #54 from earlephilhower/vfix
...
Update version header when rebuilding libpico
2021-03-29 12:06:45 -07:00
Earle F. Philhower, III
8263068a4d
Update version header when rebuilding libpico
2021-03-29 12:05:48 -07:00
Earle F. Philhower, III
d8725e8fd3
Add Adafruit QT Pi demo video
2021-03-29 09:56:38 -07:00
Earle F. Philhower, III
a0b2d7eea4
Update README.md
2021-03-29 06:51:52 -07:00
Earle F. Philhower, III
8b52df6a5e
Merge pull request #51 from earlephilhower/d1
...
Always enable USB serial port for reset
2021-03-28 17:53:04 -07:00
Earle F. Philhower, III
6a2082d63f
Always enable USB serial port for reset
...
To allow for uploads when sketches don't manually start the Serial port,
start the USB port always in main().
2021-03-28 17:51:51 -07:00
Earle F. Philhower, III
eaaab62a43
Merge pull request #48 from blurfl/Address-Issue-#46
...
Recognize /dev/cu in args.serial
2021-03-28 16:53:19 -07:00
Scott Smith
a68f79055d
Recognize /dev/cu in args.serial
...
Sketch upload to serial port fails on macos because the Arduino IDE uses the callout device "/dev/cu". Adding recognition of "/dev/cu" to uf2conv.py makes the sketch upload work.
2021-03-28 16:00:02 -07:00
Earle F. Philhower, III
01743c86a0
Merge pull request #47 from earlephilhower/except
...
Fix Pyton on RPI, EEPROM start address in LD file
2021-03-28 15:44:00 -07:00
Earle F. Philhower, III
9d9d9ebcd4
Fix Pyton on RPI, EEPROM start address in LD file
2021-03-28 15:42:35 -07:00
Earle F. Philhower, III
4cf6d90acc
Merge pull request #45 from earlephilhower/rpi
...
Add Raspberry Pi binaries, OpenOCD, and new boards
2021-03-28 13:06:46 -07:00
Earle F. Philhower, III
e17b0f6a29
Add Raspberry Pi binaries, OpenOCD, and new boards
2021-03-28 13:05:31 -07:00
Earle F. Philhower, III
24b990cc0d
Update README.md
2021-03-28 11:34:16 -07:00
Earle F. Philhower, III
95e9a3d420
Update README.md
2021-03-28 11:03:55 -07:00
Earle F. Philhower, III
6a77b2d148
Merge pull request #44 from earlephilhower/feather
...
Adafruit Feather, overclocking, flash FS shims
2021-03-28 10:59:35 -07:00
Earle F. Philhower, III
b2cef8d8d6
Adafruit Feather, overclocking, flash FS shims
...
Add support for Adafruit Feather RP2040 (8MB). Identified with a unique
USB PID so it displays properly once programmed one time. Moved LED to
pin 13 (per the website docs), but have no board to test.
Add over/underclocking menus, applied at boot. Use at your own risk, as
usual.
Add shims to allocate flash space for a filesystem (but not implemented
yet).
Add a "generic" RP2040 board
2021-03-28 10:56:53 -07:00
Earle F. Philhower, III
33dc16d033
Merge pull request #40 from earlephilhower/i2c0
...
Fix INPUT_PULLUP/DOWN, I2C 0-len probes, timeout
2021-03-27 21:31:33 -07:00