Commit Graph

182 Commits

Author SHA1 Message Date
graham sanderson
0d4a9f28c0 build fix for non pico boards 2023-06-08 10:04:05 -05:00
Peter Harper
4005af122e The dhcp server should reply to the right netif (#392)
The DHCP server broadcasts messages. This are being sent via the
default netif which might be completely the wrong network. We want to
send messages to the netif we got the original message from.
2023-06-08 10:03:16 -05:00
Peter Harper
5ba4cfc677 ping example app throws lwip assert (#394)
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-06-08 10:02:25 -05:00
Peter Harper
8661b5cf96 Fix PICO_VBUS_PIN (#393)
Inexplicably using the wrongly named constant. Should be PICO_VBUS_PIN.

* In read_vsys ignore initial readings

We were doing this for pico_w but it seems it's needed for pico as well.
2023-06-08 10:01:47 -05:00
Peter Harper
a9b3118443 Add an example to read VBUS and VSYS (#331)
The process is different on Pico and Pico W so demonstrate how to do it.

Fixes #324
2023-06-06 12:45:04 -05:00
Peter Harper
0da9d4576b Add an example for how to enable TLS verification. (#381)
* Add an example for how to enable TLS verification.

TLS should really be used with verification enabled, as otherwise you
can still suffer from a "man in the middle" attack. Add an example that
demonstrates how to do this.

Fixes #337
2023-06-06 10:45:01 -05:00
Peter Harper
5f282200d3 Comments about btstack_run_loop_execute (#388)
Co-authored-by: Graham Sanderson <graham.sanderson@raspberrypi.com>
2023-06-06 10:43:05 -05:00
Peter Harper
9736fcd4af Example using a PIO interrupt (#384)
* Add example of using a PIO interrupt

Add PIO UART receive example which uses interrupts.
2023-06-05 10:33:47 -05:00
Peter Harper
36949cbf83 Call disable function for STA/AP modes. (#387)
If the user presses "d" wifi is disconnected and the example exits.
Tests new "disable" functions.

Fixes #386
2023-06-05 10:33:03 -05:00
mjcross
77883ed107 fix build for pio/onewire/onewire_library (#374)
I think CMake `target_sources()` requires the keyword (INTERFACE |
 PUBLIC | PRIVATE)

Co-authored-by: mjcross <admin@crossleys.biz>
2023-06-05 10:21:05 -05:00
Peter Harper
8bcf165a8f Fix bt freertos build warnings (#378)
Fixes #373
2023-06-05 10:19:26 -05:00
Peter Harper
014fb537eb ble temp example: enable att server to avoid disconnect (#368)
Fixes #367

Co-authored-by: Matthias Ringwald <matthias@ringwald.ch>
2023-06-05 10:18:35 -05:00
Andrew Scheller
bf0017c6b5 Fix typos in ht16k33_i2c README (#366) 2023-04-17 08:06:49 -05:00
mjcross
9a82398d82 Add pio onewire example (#334)
* Adds PIO onewire example

Co-authored-by: martin <admin@crossleys.biz>
2023-03-26 16:48:23 -05:00
agento2
56b4522ce4 Remove bitwise operation on address (#355) 2023-03-22 09:44:40 -05:00
Liam Fraser
8bfcdbdc63 CI: Update workflows for better use of make. Thanks to @urbasus for original suggestion. (#359) 2023-03-22 09:36:59 -05:00
Spegs21
5d6b9912c0 Use the flash chip ID as the USB serial number in dev_hid_composite (#237) 2023-03-10 15:47:24 -06:00
Mr. Green's Workshop
26368b1c36 Splitting BLE and BT Classic dependencies (#332)
Co-authored-by: Peter Harper <peter.harper@raspberrypi.com>
2023-03-10 15:45:30 -06:00
dp111
3f6e1a4caf Comment Typo (#344) 2023-03-10 15:43:56 -06:00
dp111
4b76aaeeab Correct type in printf (#343) 2023-03-10 15:43:35 -06:00
dp111
e44703136f Correct Types in printf (#345) 2023-03-10 15:43:08 -06:00
dp111
1d136651f9 Correct type in printf (#346) 2023-03-10 15:42:37 -06:00
dp111
4eecaa6543 Fix debug printf (#347) 2023-03-10 15:42:10 -06:00
Graham Sanderson
60829a134a Make examples friendlier for non GCC compilers and fixed slave_mem_i2c.c to compile on boards without I2C pins (#336) 2023-03-10 15:41:40 -06:00
Andrew Scheller
9d3fea1419 Readme tweaks (#340)
* Whitespace tidy-up
* Add some missing entries to the README
2023-03-06 10:48:41 -06:00
Andrew Scheller
0df7abb3ac typo (#329) 2023-02-11 09:41:17 -06:00
graham sanderson
1c5d9aa567 Add Bluetooth examples
Co-authored-by: Peter Harper <77111776+peterharperuk@users.noreply.github.com>
2023-02-10 18:26:53 -06:00
graham sanderson
03f97a8999 Add new github workflows 2023-02-10 18:26:50 -06:00
graham sanderson
13d8cdf06c Merge back example changed in master 2023-02-10 18:25:45 -06:00
andygpz11
827cb43b3a Add example which uses the in-built 'DMA sniff' capability to check a CRC32 2023-02-10 11:11:00 -06:00
akhodeir
42ffd518c9 fix device reset in mpu6050_i2c.c (#319)
To reset the MPU6050, the device_reset bit shall be set to '1'.

reference from "MPU-6000/MPU-6050 Register Map and Descriptions"
DEVICE_RESET : When set to 1, this bit resets all internal registers to their default values. The bit automatically clears to 0 once the reset is done.
2023-02-10 09:40:01 -06:00
mjcross
92de98a364 update pico-examples/ide/vscode (#313)
Co-authored-by: martin <admin@crossleys.biz>
2023-02-10 08:39:18 -06:00
kripton
b59a522ec4 Pico-W Access Point: Fix DHCP server for certain clients (dhcpcd) (#288) 2023-02-09 13:41:48 +00:00
Peter Harper
5e1c1ca7b6 Add i2c slave example (#320)
* Add i2c slave example

from https://github.com/vmilea/pico_i2c_slave

To test you need to wire pin GP4 to GP6 (SDA), and pin GP5 to GP7 (SCL)
2023-02-07 08:03:00 -06:00
Graham Sanderson
f3f5d9fe61 update TinyUSB examples for latest TinyUSB (#325) 2023-02-06 16:56:50 -06:00
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
Andrew Scheller
dc6762409f typo (#244) 2023-02-02 19:13:23 +00:00
Henry Gabryjelski
f6ac6f5b49 PIO WS2812 Sample: Change 'string' to 'strip' (#279) 2023-02-02 13:03:43 -06: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