Commit Graph

145 Commits

Author SHA1 Message Date
graham sanderson
9600dec1f0 fix build issues on GCC 12 2023-02-06 16:18:33 -06:00
Peter Harper
86496336c1 Add tls_client example (#305)
* Add tls_client example

This requires pico_mbedtls in the pico-sdk
Connects to worldtimeapi.org and retrieves a web page
Originally written by Floris Bos @maxnet
2023-02-04 16:41:44 -06:00
kromych
e2a389c359 Generalize ST7789 init. sequence (#312) 2023-02-04 16:39:22 -06:00
Tkostas
ec52f31d84 Change comment location in dev_lowlevel (#249)
Comment location was misleading, intellisense associate the comment to
the typedef type instead of struct usb_endpoint_configuration.
2023-02-04 16:36:47 -06:00
Andrew Scheller
992348a8b4 Eliminate duplicate anchor-ref (#218) 2023-02-03 19:28:14 +00:00
Andrew Scheller
e62e8b6aeb Fix README link (#230) 2023-02-03 19:26:21 +00:00
Andrew Scheller
d0d5ab8cc4 Small typo (#225) 2023-02-03 19:24:41 +00:00
Brian Cooke
5d9f227d71 fix typos in pico-w examples (#236)
* fix typo in iperf example

* fix type in ping example
2023-02-02 19:23:54 +00:00
Peter Harper
566ce86a6e Improve ap example (#233)
* Add dns server

The access point example is a bit complicated to use as you have to open
a browser and enter a url with the IP address of the device

Add a simple dns server that can be used to make the access point behave
like a captive portal. All DNS requests point back to the gateway IP.

* Improve AP example

The web page /ledtest gives you a web page with an option to turn the
led on and off

Start the DNS server and redirect all HTTP requests to this page.

Improve the code so it can handle more than one request at a time.

Fixes: #232
2023-01-23 08:35:33 -06:00
Peter Harper
a605c65774 ping example app throws lwip assert (#309)
Now LWIP_PLATFORM_ASSERT has been fixed we're seeing an assert for the
ping example app.
It sets the SO_RCVTIMEO socket option which is not enabled.

Fixes #308
2023-01-04 12:58:44 -06:00
sashz
6c3f2dad5c fixed bug on macOS - pico usb device sends more data than requested by usb host (#283) 2022-12-22 17:23:36 -06:00
Peter Harper
8b1d1eef00 Fix build issues with spaces and parentheses (#298)
Add VERBATIM to add_custom_command

Fixes #297
2022-12-22 17:22:05 -06:00
Peter Harper
c80026dbed Add UDP transmitter example (#306)
Co-authored-by: Andrew McDonnell <bugs@andrewmcdonnell.net>
2022-12-22 17:20:35 -06:00
Peter Harper
5bb4f7f6cb Fix issues building examples with LWIP_IPV6 (#268)
Fixes https://github.com/raspberrypi/pico-examples/issues/265
2022-12-06 18:49:18 -05:00
Mücahit KURTLAR
f31966d69d Add Python test scripts and rename MicroPython scripts (#246) 2022-12-06 18:48:11 -05:00
Peter Harper
b1dae7fb6d Fix debug build issue (#300)
Fixes #299
2022-12-06 11:07:05 +00:00
James Hughes
8be18f2998 Update README.adoc (#293)
Fix up the List of files section.
2022-11-26 18:17:05 -06:00
James Hughes
82eae4c8ea Added a 14 segment LED example, driven by the HT16K33 (#219)
No fritzing parts available for the device so no diagrams
2022-11-25 11:32:13 -06:00
James Hughes
aa9a72b494 Refactor the oled_i2c example (#217)
This PR does a number of things:

1. Renames the oled_i2c example to sssd1306_i2c to match other example folder
   names that use the device name
2. Merge code from another ssd1306 exmaple that was sitting in another PR
3. Add a few more demo parts to the code for extra fun.
4. Couple of bug fixes that were reported in original code to fix handling different
   display sizes, so code now works for 32 and 64 pixel height displays by changing
   a define at top of code.
2022-11-25 10:38:11 -06:00
Wenzel
75c6a5e9db Fix missing TCP_PORT for printf in TCP server example (#270)
Also replace `%d` with `%u`

Co-authored-by: Viacheslav Lotsmanov <lotsmanov89@gmail.com>
2022-10-12 20:09:04 -05:00
Peter Harper
5555037e78 Load WIFI_SSID and WIFI_PASSWORD from environment (#274)
Fixes #273
2022-09-11 07:31:06 -05:00
David Christensen
15e7d06abd README and comment change for pico-w examples (#242) 2022-07-16 16:14:49 -05:00
Liam Fraser
3a0b299569 Fix incorrect gpio / gpout in hello_gpout (#241) 2022-07-15 07:01:48 -05:00
Brian Cooke
a7ad17156b fix links to pico_w examples (#229)
Fixes #228
2022-07-01 08:01:37 -05:00
graham sanderson
01e8128953 Add Pico W examples 2022-06-29 23:12:10 -05:00
Andrew Scheller
a7ce7007ff Update spi_master_slave README (#216)
The "List of Files" section should only list text-files (i.e. source code), not images or supplementary files
2022-05-17 22:09:59 -05:00
graham sanderson
2a11e9f8f2 Clean up onboard_temperature example slightly, and let i tbuild when there is no default LED 2022-05-17 19:43:30 -05:00
graham sanderson
6a747b3b71 pick up new version of pico_sdk_import.cmake - only really relevant to optimize git download of pico-sdk 2022-05-17 16:16:00 -05:00
Graham Sanderson
2cb4d4aa1a Add delay to hello_rtc (#109) (#215)
A delay is needed after `rtc_set_datetime()` before the newly set value can be read back.

Co-authored-by: Rene Greiner <reneg973@gmail.com>
2022-05-17 13:11:57 -05:00
Graham Sanderson
4039929324 Add missing links from README.md to new spi examples (#214) 2022-05-17 11:43:16 -05:00
Andrew Scheller
bef1dc930f Update Raspberry Pi Pico URL in spi_master_slave (#213) 2022-05-17 11:42:56 -05:00
Graham Sanderson
bebd459244 Add indication of how errata RP2040-E5 workarund is turned on (#210) 2022-05-17 11:24:17 -05:00
James Hughes
705cd0fbea Add a couple of examples of using the Max7219 LED driver chip (#209) 2022-05-17 09:35:03 -05:00
Graeme Winter
72e41ad66f Fix PIO count (#211)
Works fine currently for low frequency, breaks down at higher frequency e.g. 1MHz

Chased down with a scope to the 3 extra cycles needed for wait+1; mov; jmp
so account for these in demo program
2022-05-16 15:17:42 -05:00
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