Neil McKechnie
261ccf2f3b
HAL - change variable type for PCA9685 data.
2023-02-07 15:09:21 +00:00
Neil McKechnie
278a9c52a6
Refactor SSD1306 initialisation to support different initialisation sequences.
...
To support a HAL Display driver, the SSD1306 driver can be created (new) and then the I2C address assigned explicitly in the begin() call. The original approach of looking for the I2C device address has also been retained in a different constructor.
2023-02-07 15:07:29 +00:00
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
peteGSX
c870940dde
Add extra error checking
2023-02-07 07:32:16 +10:00
peteGSX
754639c7e3
Update version
2023-02-06 19:39:25 +10:00
peteGSX
a478ad7112
Merge pull request #302 from DCC-EX:separate-server-from-pca9685
...
Separate-server-from-pca9685
2023-02-06 19:34:00 +10:00
Neil McKechnie
13bd6ef9eb
HAL: Add support for Extended Addresses and I2C Multiplexer
...
Change I2C addresses from uint8_t to I2CAddress, in preparation for MUX support. Currently, by default, I2CAddress is typedef'd to uint8_t.
MUX support implemented for AVR and Wire versions.
2023-02-04 23:57:22 +00:00
Neil McKechnie
45657881eb
Merge branch 'devel-nmck' of https://github.com/DCC-EX/CommandStation-EX into devel-nmck
2023-02-04 23:01:51 +00:00
Neil McKechnie
a590245e93
I2CManager_SAMD.h: Remove unneeded declaration.
2023-02-04 21:01:02 +00:00
Neil McKechnie
6f5680fce0
DFPlayer: Avoid jumps in volume when switching song and reducing volume at the same time.
2023-02-04 20:59:19 +00:00
Neil McKechnie
2f46a8e083
Add EX-RAIL 'ANOUT' function for general analogue outputs.
2023-02-04 20:56:12 +00:00
Neil McKechnie
bd62939713
Fix handling of hex numbers to avoid extending MSB (sign bit)
...
Also, added format %X (unsigned long) to complement %x (unsigned int).
2023-02-04 20:55:14 +00:00
peteGSX
abe79b854e
Fix digital read bug
2023-02-04 09:19:32 +10:00
Neil McKechnie
27ddc7b30b
IO_ExampleSerial - refactor and update comments
...
To more directly reflect the bulk of HAL drivers, the .h/.cpp split has been removed and the class is fully defined in the .h file.
2023-02-03 12:56:19 +00:00
Neil McKechnie
81559998ec
Update IODevice base class to better support filter drivers
...
Filter drivers provide extra functionality above a hardware driver. For example, a hardware driver for a PWM module may just set the PWM ratio, but a separate filter driver could animate motors or servos over time, calling the PWM driver to output the pulses. This would allow the animations to be easily implemented on a different type of PWM module.
2023-02-03 12:55:25 +00:00
Neil McKechnie
847ced2f49
Update IO_VL53L0X.h
...
Improve comments; drive XSHUT pin through pullup resistor, not directly.
2023-02-03 12:46:38 +00:00
Neil McKechnie
49713badb2
Update I2CManager_NonBlocking.h
...
Add code to try and recover from stuck bus following a timeout.
2023-02-02 12:21:35 +00:00
pmantoine
be88344407
PCF8575 16-bit port device support added
2023-02-02 07:12:47 +08:00
peteGSX
ec83a345dc
Basic PWM working
2023-02-01 19:46:08 +10:00
peteGSX
4e32c707b9
Brief start on PWM
2023-02-01 14:53:46 +10:00
peteGSX
73e1dfc192
Remove duplicate comment
2023-02-01 08:13:23 +10:00
peteGSX
1ae74d9487
Merge branch 'separate-server-from-pca9685' of https://github.com/DCC-EX/CommandStation-EX into separate-server-from-pca9685
2023-02-01 07:51:45 +10:00
peteGSX
a7366b42c1
Add new drivers
2023-02-01 07:51:38 +10:00
peteGSX
84431d1841
Fix mess after rebase and conflicts
2023-02-01 07:49:31 +10:00
peteGSX
e12c5292fa
Merge branch 'ex-io-28-feature-request-enable-pwm-support' of https://github.com/DCC-EX/CommandStation-EX into ex-io-28-feature-request-enable-pwm-support
2023-02-01 07:29:17 +10:00
peteGSX
e76197faa9
Brief PWM start
2023-02-01 07:26:03 +10:00
peteGSX
bdc8aec9a6
Refactored, analogue tested
2023-02-01 07:19:52 +10:00
peteGSX
052256e2ed
Refactored, analogue tested
2023-02-01 07:18:04 +10:00
Neil McKechnie
ba9b363058
I2CManager_NonBlocking - Defer I2C speed changes for all drivers
...
Following on from the change to I2CManager_SAMD.h, the capability of deferring a request to change the speed of the I2C has been removed from the SAMD driver and put into the common NonBlocking code, so that all native drivers benefit from it.
2023-01-31 18:39:15 +00:00
Neil McKechnie
bdffd36820
IODevice.h - change visibility of findDevice to protected.
...
To support nested drivers efficiently (i.e. to allow the higher driver to call another driver directly, without searching for a VPIN every time), the visibility of the IODevice::findDevice() function has been changed from private to protected.
2023-01-31 15:24:38 +00:00
Neil McKechnie
4d350040ba
I2CManager_SAMD.h - avoid bus hangs on speed changes
...
The speed change is deferred until the next transmission is about to start to avoid issues with the I2C module being disabled and enabled during a transmission.
2023-01-31 12:28:51 +00:00
peteGSX
1073e142e6
Add new drivers
2023-01-31 19:32:12 +10:00
peteGSX
a18c06d021
Cleaned up PWM start
2023-01-31 19:29:39 +10:00
Neil McKechnie
291a331f3e
Fix read operations on I2CManager for SAMD
2023-01-31 00:36:57 +00:00
peteGSX
77b20e6a16
Merge branch 'ex-io-28-feature-request-enable-pwm-support' of https://github.com/DCC-EX/CommandStation-EX into ex-io-28-feature-request-enable-pwm-support
2023-01-30 05:00:40 +10:00
peteGSX
1d27eb67e4
Brief PWM start
2023-01-30 05:00:31 +10:00
peteGSX
7f19a92d2a
Refactored, analogue tested
2023-01-30 05:00:31 +10:00
peteGSX
28caa9e8d3
Brief PWM start
2023-01-29 19:26:33 +10:00
Harald Barth
95945eab4c
version bump
2023-01-29 08:50:19 +01:00
Harald Barth
638682f05c
STM32F4xx fast ADC read implementation (merge branch 'stm32_adcee_pma' into devel)
2023-01-29 08:47:05 +01:00
peteGSX
ffb08523da
Merge branch 'ex-io-28-feature-request-enable-pwm-support' of https://github.com/DCC-EX/CommandStation-EX into ex-io-28-feature-request-enable-pwm-support
2023-01-29 17:18:33 +10:00
peteGSX
d8a1bcaf34
Refactored, analogue tested
2023-01-29 17:18:23 +10:00
Harald Barth
212bf8d80e
Broadcast power for <s> again
2023-01-29 08:13:52 +01:00
peteGSX
a17c02444d
Refactored, analogue tested
2023-01-29 10:06:01 +10:00
Harald Barth
290d878063
version
2023-01-28 19:09:16 +01:00
Harald Barth
2a7588b1b5
jT answer should contain empty string
2023-01-28 19:07:59 +01:00
pmantoine
be33bafa66
Fixed logic of ADC ready
2023-01-28 14:39:00 +08:00
pmantoine
6cc66e26c1
Initial STM32F4xx fast ADC read implementation
2023-01-28 13:58:55 +08:00
Harald Barth
c91d66549c
Remove warnings
2023-01-27 19:42:55 +01:00