Neil McKechnie
9435869ee3
Prepare HAL device drivers to support Extended I2C Addresses
...
Cast I2CAddress variables in DIAG calls to (int).
2023-02-07 15:04:03 +00:00
Neil McKechnie
d5a394d4e6
Prepare HAL device drivers to support Extended I2C Addresses
...
Update I2C addresses of HAL devices to type I2CAddress (to support extended address functions).
Cast I2CAddress variables in DIAG calls to (int).
Remove uses of max() function (not available on some platforms.
2023-02-07 14:55:14 +00:00
Neil McKechnie
bfbc45674f
Update IO_AnalogueInputs.h
...
Add I2C initialisation calls (previously missing).
2023-01-22 12:38:24 +00:00
Asbelos
08eaa8ddb7
I2C overlap checks (working but messy)
...
Needs disgnostic clean and promotion of i2c address to IODevice.
2022-06-14 17:21:11 +01:00
Asbelos
ef937dcacf
Privatize HAL constructors
...
Forces caller to go via create function which includes overlap checks before class is instantiated.
2022-06-14 15:23:27 +01:00
Asbelos
e11d2d08d1
HAL catch pin overlaps
2022-06-14 15:15:42 +01:00
Neil McKechnie
6dde811279
Optimise HAL drivers for TOF sensor and Analogue Inputs
...
Increased use of async I2C in HAL drivers to reduce overall loop time overhead.
2021-10-05 12:48:45 +01:00
Neil McKechnie
302b16547e
HAL driver enhancements
...
Performance enhancements in IODevice::loop() function.
Improved error handling, device is placed off line if not responding.
Improved error reporting, device shown as offline if not operational (faulty or not present).
2021-09-21 11:02:23 +01:00
Neil McKechnie
592f87303e
Update IO_AnalogueInputs.h
...
Increase frequency of ADC conversions to 4ms, since 10ms driver cycle isn't enough time for a 7.8ms conversion to complete reliably.
2021-09-15 10:44:43 +01:00
Neil McKechnie
02a715d54d
New DFPlayer MP3 device, and tidy comments in other drivers.
2021-09-15 00:23:24 +01:00
Neil McKechnie
2ed578821f
Add analogue inputs to HAL.
...
Add ability to read analogue inputs on arduino and on external ADS1115 I2C modules.
2021-09-11 13:35:11 +01:00