Ayke van Laethem
59d66d1e73
Makefile: add XTENSA=0 flag to skip Xtensa tests
...
This can be useful, to quickly run the tests without compile errors
because of missing Xtensa support.
2023-04-27 18:38:44 +02:00
Ayke van Laethem
1eb7072162
Makefile: remove AVR=0 flag
...
Now that we don't rely on external tools anymore, this isn't necessary
anymore.
2023-04-27 18:38:44 +02:00
Daniel Esteban
5cc21329a6
first implementation of 1-wire protocol ( #505 )
...
onewire: initial implementation for protocol and ds18b20 device
2023-04-22 17:55:37 +02:00
Ayke van Laethem
d3022e7d6e
all: add sleep mode to various SPI displays
...
The API looks like this and is based on the PCA9685 PWM chip:
Sleep(sleepEnabled bool) error
It will set the LCD panel to a low power state (not displaying any
image) but memory contents will be preserved.
2023-04-17 08:23:54 +02:00
Ayke van Laethem
5c06b82b27
st7789: avoid heap allocations after the driver is created
...
Heap allocations can result in significant and unpredictable slowdowns.
For example, they can take over 10ms on the Gopher Badge, which results
in visible tearing (when tearing is otherwise avoided).
2023-04-14 08:34:51 +02:00
Pablo Canseco
bf53cb2fd4
[gps] make the date available in addition to the time ( #532 )
...
gps: also parse the date from an RMC sentence. Add coverage to unit test so it also asserts on time and date.
2023-04-13 09:52:57 +02:00
Ayke van Laethem
1fd38a8a68
st7789: make it possible to configure gamma
...
Some displays need other values than the default to look right.
Therefore, add a configuration option to set the gamma table for a
particular LCD panel.
2023-04-09 07:43:29 +02:00
Daniel Esteban
55e100c4fe
added DrawRGBBitmap8 (same as ili9341 & st7735)
2023-03-30 00:19:36 +02:00
Ayke van Laethem
cba17ef125
st7735: add DrawRGBBitmap8 method to draw raw RGB565 buffers
...
This is needed for high performance graphics.
Using this API, and using partial updates to the screen (no full screen
refreshes), I've been able to get well over 60fps of updates.
2023-03-28 19:52:27 +02:00
Neil Davis
c59b5a909b
Add support for ams AS560x on-axis magnetic rotary position sensors
2023-03-21 23:27:48 +01:00
Brian Park
b0a971573b
ds3231: Document incorrect leap year 2100
...
The current code interprets the 'century' flag as the year 2100. However the
DS3231 hardware does not incorporate this flag in its leap year calculation, so
will incorrectly consider the year 2100 as a leap year and increment from
2100-02-28 to 2100-02-29 instead of the correct 2100-03-01.
The 'century' bit is not useful for anything as far as I can tell. But instead
of removing the code that uses the 'century' bit, I thought it would be less
intrusive to just document the current behavior.
2023-03-20 22:59:57 +01:00
Olivier Fauchon
94017b5437
sx126x/sx27x: Reduce spi buffer size, add missing select when using channels
2023-03-20 22:38:33 +01:00
Olivier Fauchon
56208a28d5
sx127x/sx126x: Remove heap alloc in interrupt, add non blocking channel send/receive, and other cleanups
2023-03-20 22:38:33 +01:00
Brian Park
0adc7e78aa
ds3231: Fix negative temperature conversion
...
I also verified my interpretation of the DS3231 datasheet and my implementation
of this formula by placing a DS3231 chip in the freezer section of my
refrigerator for an hour or two, then reading the temperature. I got -16C,
which is close enough to the -18C that the freezer was set to.
2023-03-03 09:43:48 +01:00
deadprogram
820298bfe3
all: prepare for release 0.24.0
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
v0.24.0
2023-02-12 22:30:48 +01:00
deadprogram
46cbacbe03
docs: add sx127x to list of supported devices
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-02-12 21:33:36 +01:00
deadprogram
9d4847fc6d
sx12xx: add README files for some basic explanation
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-02-12 21:33:36 +01:00
deadprogram
4de0afc224
build: work around for CVE-2022-24765
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-02-12 08:39:28 +01:00
deadprogram
21fa184b76
build: update to actions/checkout@v3
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-02-12 08:39:28 +01:00
Olivier Fauchon
fae4307190
sx127x: Fix bug in SetTxPower, SetPreambleLength
2023-02-01 09:08:43 +01:00
Olivier Fauchon
7f61bda24c
lorawan: Update AU915 RegionSet modulations
2023-02-01 08:53:21 +01:00
deadprogram
e613ab1eb3
sx127x: use select for timeout
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-31 23:54:43 +01:00
Olivier Fauchon
d57d9b6c74
sx127x: fix typos, provide corrections
2023-01-31 23:54:43 +01:00
Olivier Fauchon
07ba9ec0fd
fix bandwidth,tx power in lora/sx126x/lora_continuous example
2023-01-31 23:54:20 +01:00
Olivier Fauchon
fa0cf6ec7f
lorawan cleanup and optimizations:
...
- Remove all default loraconf default initialisation in lorawan examples (Region Settings takes care of this now)
- Remove retries while receiving JoinAccept and increase LoraRX to 10s (no need to wait more than 10s)
- Add constants for RegionSetting default frequencies
- Standardize all lora default configurations in lora examples
- Add new AT+LW=NET,(ON|OFF) command in atcmd example
2023-01-31 23:54:13 +01:00
deadprogram
4e687b29c3
mpu6050: add functions to configure clock, and scaling for accelerometer and gyroscope
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-30 10:07:38 +01:00
Olivier Fauchon
d283abdb3a
lorawan: Fix error in uplink crc
2023-01-29 23:56:19 +01:00
Olivier Fauchon
02d808a6fb
lorawan/sx12xx : Code cleanup
2023-01-29 23:56:19 +01:00
Olivier Fauchon
d473b9e1dc
lorawan/basic-demo: add debug logs at compile time with ldflags
2023-01-29 23:56:19 +01:00
Olivier Fauchon
7cc32dffed
lorawan/basic-demo : fix in lorawan debug informations
2023-01-29 23:56:19 +01:00
Olivier Fauchon
58cb44f3f6
sx126x driver: fix in SetBandwidth function
2023-01-29 23:56:19 +01:00
Olivier Fauchon
78cc1afe46
lorawan: Basic implementation of Lorawan Regional Settings and EU868/AU915 regions
2023-01-29 23:56:19 +01:00
deadprogram
e6cde8f7ae
bmp180: add ReadAltitude() function copied from BMP280 driver
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-27 21:42:08 +01:00
deadprogram
89f113c0ca
examples: lora/lorawan add needed build tags for lgt92/featherwing
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-27 00:49:38 +01:00
deadprogram
3b8a808a52
examples: lora/lorawan pin mapping for lgt92 and Adafruit Featherwing
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-27 00:49:38 +01:00
deadprogram
7506a895a2
examples: update lora/lorawan common setup to use sx127x RadioControl
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-27 00:49:38 +01:00
deadprogram
4a950a4474
sx127x: add RadioController interface to match sx126x
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-27 00:49:38 +01:00
deadprogram
f2637a87d2
gps: improve parsing and add tests to verify
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-17 07:48:22 +01:00
deadprogram
ecb343b3b3
gps: improve error handling
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-17 07:48:22 +01:00
deadprogram
0b62d4fb4a
gps: add support for GLL sentence type, add original sentence to gps errors
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-17 07:48:22 +01:00
deadprogram
5b461ec2d1
gps: improve error handling
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-17 07:48:22 +01:00
Vincent Janelle
b1c9612158
( #501 ) make IP.String() method return something sensible
2023-01-16 13:43:59 +01:00
deadprogram
0b6e1d0e78
lorawan: increment devnonce don't just create a new one each join attempt
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-16 09:33:13 +01:00
deadprogram
49e7a6d6c8
sx126x: actually set the frequency when calling SetFrequency()
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-16 09:33:13 +01:00
deadprogram
be644b36fe
lorawan: simplify GetRand16() function
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-16 09:33:13 +01:00
deadprogram
409723e496
lorawan: set devNonce to new random value on each attempt to join
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-16 09:33:13 +01:00
deadprogram
8aa3530c8b
lorawan: increase timeout values for tx/rx
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-16 09:33:13 +01:00
deadprogram
390854ee45
examples: set pin mappings for sx126x external board
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-16 09:33:13 +01:00
deadprogram
ce5dd65dad
sx126x: pre-define all errors to avoid heap allocations
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-16 09:33:13 +01:00
deadprogram
73e9d5bfec
sx126x: move RadioController into separate file for clarity
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-01-16 09:33:13 +01:00