111 Commits

Author SHA1 Message Date
Felipe Kühne
4d1d533122
Added onboard_temperature example. (#80)
Co-authored-by: Felipe Kuhne <fkuhne@dbserver.com.br>
2022-05-16 15:13:35 -05:00
Michael Stoops
2147301e11
Added spi/spi_master_slave. (#101)
Co-authored-by: Michael Stoops <spam@michaelstoops.com>
2022-05-16 14:22:24 -05:00
kripton
1a2a85ca6e
Fiy a typo and clarify one comment (#189) 2022-05-16 14:08:01 -05:00
Jasper van der Neut - Stulen
6bb66028ed
PIO Quadrature fixes (#195)
* Enable internal pullup on B-pin.

* pio_gpio_init is not needed for input pins.
2022-05-16 14:07:26 -05:00
Andrew Scheller
fa0deaeff9
Fix position of Pico in Fritzing diagram (#194)
Fixes #191
2022-05-16 14:06:22 -05:00
Andrew Scheller
21622fc913
Remove apostrophes and fix a typo (#196) 2022-05-16 14:05:24 -05:00
Samuel Jones
cba82df30b
ir_nec: fix a minor clock setup typo in nec_receive.pio (#207) 2022-05-16 13:48:42 -05:00
graham sanderson
f9d11a2d74 Merge branch 'master' into develop 2021-11-24 19:03:05 -06:00
Graham Sanderson
afd1d2008f
Small doc/example changes
* Use PIO IRQ accessors in PIO I2C example

* Update pio/ir_nec/README.adoc file links (#183)

The "List of Files" now links (only) to files, not to directories (which prevented this example being included in the C SDK databook)
2021-11-24 19:02:20 -06:00
Andrew Scheller
e6fd50b3f5
Update pio/ir_nec/README.adoc file links (#183)
The "List of Files" now links (only) to files, not to directories (which prevented this example being included in the C SDK databook)
2021-11-19 14:23:19 -06:00
Luke Wren
498caedd1f
Use PIO IRQ accessors in PIO I2C example (#164)
* Use PIO IRQ accessors in PIO I2C example
2021-11-19 14:22:52 -06:00
James Hughes
fb96fad5a5
Fixup a coding error in BME280 example (#187) 2021-11-19 10:37:36 -06:00
graham.sanderson@raspberrypi.com
9133a154d8 Merge branch 'master' into develop 2021-11-04 10:09:44 -05:00
James Hughes
188d849b1f
Update README.adoc's for various examples to remove unnecessary block callouts. (#182) 2021-11-03 11:37:42 -05:00
graham sanderson
2c3a87e6c7 Merge branch 'master' into develop 2021-11-01 14:42:30 -05:00
Graham Sanderson
f800a7e303
Updates along with SDK1.3.0 release (#181)
Bug fixes and new examples

Co-authored-by: Paulo Marques <pm@quant-insight.com>
Co-authored-by: martin <admin@crossleys.biz>
Co-authored-by: matiasilva <matias.silva@raspberrypi.com>
Co-authored-by: Uri Shaked <uri@urishaked.com>
Co-authored-by: Diego Solano <diegosolano@gmail.com>
Co-authored-by: Andrew Scheller <andrew.scheller@raspberrypi.com>
Co-authored-by: Adrian Hesketh <a-h@users.noreply.github.com>
Co-authored-by: Emircan Gündoğdu <58917386+emircangun@users.noreply.github.com>
Co-authored-by: Josef Wegner <80200012+josefwegner@users.noreply.github.com>
Co-authored-by: pmarques-dev <72901351+pmarques-dev@users.noreply.github.com>
Co-authored-by: Paulo Marques <pm@quant-insight.com>
Co-authored-by: mjcross <mjcross@users.noreply.github.com>
Co-authored-by: martin <admin@crossleys.biz>
2021-11-01 14:41:54 -05:00
Graham Sanderson
3f3c1f00ab
add CONTRIBUTING.md (#170) 2021-11-01 08:20:17 -05:00
Graham Sanderson
fd7fd1fd5f
fix lcd_uart for PICO_BOARD=none (#179) 2021-10-29 15:52:44 -05:00
Graham Sanderson
c507d548fe
regenerated pio headers (#180) 2021-10-28 15:15:05 -05:00
Graham Sanderson
fa09f2c88e
Cleanup 3rd party samples; update README.md; add some missing copyright, fix builds for boards without certain pin definitions 2021-10-28 14:56:05 -05:00
Andrew Scheller
1300621684
Fix Raspberry Pi Pico product link (#177) 2021-10-27 22:27:15 -05:00
Graham Sanderson
845daaddda
SDK1.3.0 specific (requiring) changes (#173)
* SDK1.3.0 specific (requiring) changes
- Fixup TinyUSB build for 0.12.0, and add back standalone examples for device/host (copied from TinyUSB)
2021-10-26 16:49:54 -05:00
mjcross
1ec5e530b1
Add pio/ir_nec (#129)
Co-authored-by: martin <admin@crossleys.biz>
2021-10-26 16:16:15 -05:00
pmarques-dev
09e34e7c1a
add a quadrature encoder pio example (#126)
Co-authored-by: Paulo Marques <pm@quant-insight.com>
2021-10-26 16:15:12 -05:00
Graham Sanderson
6e647c6f26
Additional examples for specific h/w by our interns (#171)
adc/microphone_adc - Read analog values from a microphone and plot the measured sound amplitude.
i2c/bmp280_i2c - Read and convert temperature and pressure data from a BMP280 sensor, attached to an I2C bus.
i2c/lis3dh_i2c - Read acceleration and temperature value from a LIS3DH sensor via I2C
i2c/mcp9808_i2c - Read temperature, set limits and raise alerts when limits are surpassed.
i2c/mma8451_i2c - Read acceleration from a MMA8451 accelerometer and set range and precision for the data.
i2c/mpl3115a2_i2c - Interface with an MPL3115A2 altimeter, exploring interrupts and advanced board features, via I2C.
i2c/oled_i2c - Convert and display a bitmap on a 128x32 SSD1306-driven OLED display
i2c/pa1010d_i2c - Read GPS location data, parse and display data via I2C.
i2c/pcf8523_i2c - Read time and date values from a real time clock. Set current time and alarms on it.
uart/lcd_uart - Display text and symbols on a 16x02 RGB LCD display via UART
2021-10-25 12:30:57 -05:00
Graham Sanderson
fabb762f75
fixup examples to use some SDK1.2.0 added functions (#172) 2021-10-25 12:30:42 -05:00
Josef Wegner
74aff26c75
This should make using the WS2812 examples a bit easier. (#84)
* This should make using the WS2812 examples a bit easier.
Moved parameters to the top as defines:
- Number of LEDs in your NeoPixel/WS2812 strip/ring
- Flag if the LEDs are WRGB or not
Changed PIN to 2 as pin 0 is used for serial UART.
2021-10-22 15:36:58 -05:00
Emircan Gündoğdu
ad51837566
Fix typo in comment (#158) 2021-10-22 14:47:03 -05:00
Adrian Hesketh
1b1948af46
bus_scan.c example - clarify pin number in comment (#146) 2021-10-21 17:21:15 -05:00
Andrew Scheller
3f2742063f
Update website-links to raspberrypi.com (#161)
\
2021-10-14 14:47:34 -05:00
Diego Solano
010595e1ba
Fixed typos in notes (#155) 2021-09-02 10:48:45 -05:00
matiasilva
a192a018c6 Improve comment wording 2021-07-30 08:45:51 -05:00
matiasilva
99facf4deb Fix lingering incorrect comments 2021-07-30 08:45:51 -05:00
matiasilva
1983217af3 Improve comments in CMakeLists.txt files 2021-07-30 08:45:51 -05:00
matiasilva
8f68cef111 Clarify GPIO pins in MPU6050 example 2021-07-30 08:45:51 -05:00
matiasilva
8f93bbc1a1 Remove old line from CMakeLists 2021-07-30 08:45:51 -05:00
Uri Shaked
34c3ade43e Fix pio_blink frequency calculation
Added missing parenthesis around the divisor. Verified using a logic analyzer and also in simulation:

https://wokwi.com/arduino/projects/300911723685085709
2021-07-12 09:05:47 -05:00
matiasilva
cf2cd5a5f1 Enforce alphabetical order in subdir CMakeLists 2021-07-12 09:04:14 -05:00
graham.sanderson@raspberrypi.com
146680d625 update usb example info in README.md 2021-06-04 09:21:52 -05:00
graham sanderson
e43d7a62c2 merge master into develop 2021-06-03 11:02:21 -05:00
graham sanderson
40b07ac921 just use device/host examples direct from tinyusb 2021-06-03 10:57:13 -05:00
graham sanderson
7e4e3290d5 fixup/test compiler warnings 2021-06-03 10:57:13 -05:00
Tom Messick
4f64f3af80 Prevent extra bit transition at end of data
The initial bit transition would be set even if the queue stalled.
The state machine still takes 16 cycles per bit
The next bit starts on state 1 and 9 instead of 0 and 8 so the timing is the same as before
2021-06-02 16:04:50 +01:00
Andrew Scheller
612469d347 Fix condition for printing morse-code Z
Fixes #86
2021-04-12 19:00:07 -05:00
fivdi
849279a8ce bus_scan: use i2c_default rather than i2c0 2021-04-12 18:24:36 -05:00
Julien Bernard
1813f81b12 Respond to other OUT control requests with a ZLP 2021-04-12 18:23:56 -05:00
Andrew Scheller
2fb08a028f Let hello_double_tap run without an LED defined 2021-03-05 09:30:26 -06:00
Andrew Scheller
7915827d7a Fix examples to build cleanly if PICO_DEFAULT_LED_PIN isn't defined 2021-03-05 09:30:26 -06:00
Liam Fraser
a68688f191 Update cmake workflow to trigger on push + pull request. Only run in raspberry pi repo (not on forks) 2021-03-05 09:30:26 -06:00
Liam Fraser
b14e0f3ab0 Add github actions 2021-03-05 09:30:26 -06:00