191 Commits

Author SHA1 Message Date
Ikatono
805925c92d started Neopixel structs 2023-12-19 01:38:32 -06:00
2185c25f12 added Queue.h 2023-12-08 22:42:15 -06:00
1b1734c15e added workspace file 2023-12-08 21:22:21 -06:00
1f492d0835 my first commit 2023-12-08 21:13:49 -06:00
Andrew Scheller
eca13acf57 Fix broken link in README.md (#397) 2023-06-11 15:15:45 -05:00
graham sanderson
cbf8072072 Merge branch 'master' into develop 2023-06-08 15:22:59 -05:00
pmarques-dev
465a2a3824 coding style fixes, copyright waiver (#395)
Co-authored-by: Paulo Marques <pm@quant-insight.com>
2023-06-08 15:22:29 -05:00
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
Frederico Pereira
654aabc686 Update picow_ntp_client.c (#391)
Fix "invalid conversion from 'void*' to 'NTP_T*'"
2023-06-06 10:51:55 -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
pmarques-dev
8df09c9a7c quadrature encoder: reduce PIO code size from 29 to 24 (#390)
Co-authored-by: Paulo Marques <pm@quant-insight.com>
2023-06-05 10:54:37 -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