Commit Graph

362 Commits

Author SHA1 Message Date
Thomas Kohler ad12eaca69
system(syscall): switch to x/sys (#963) 2023-06-19 16:06:44 +02:00
Thomas Kohler 314a808200
ble: simplify and substitute errors.Wrap() (#958) 2023-06-14 18:27:22 +02:00
Thomas Kohler f5d8d5c601
all(style) : fix linter issues for errcheck, ineffassign, unused and fix errors (#950) 2023-06-12 19:51:25 +02:00
Thomas Kohler 0d0a508c60
core(build): CLI removed (#946)
* core(build): CLI removed
* adjust install instructions in doc and README
* fix master_test and remove useless/duplicated tests examples_test.go
2023-06-04 18:36:55 +02:00
Thomas Kohler 865e724af0
Build(v2): revert move to v2 subfolder (#932)
* revert move to v2 subfolder
* fix CI and adjust CHANGELOG
2023-05-29 19:23:28 +02:00
Thomas Kohler d908619462
Build(v2): fix usage by moving code to a v2 subfolder (#927) 2023-05-22 19:35:36 +02:00
Thomas Kohler 949392d8a7
Fix(core): Semantic Import Versioning for v2 (#921) 2023-05-20 14:25:21 +02:00
Thomas Kohler fcdf286f1d
Fix(build): linter findings of "gosimple", "govet" and "staticcheck" (#917)
Fix also encoder and dps overflow in gopigo3 "GetMotorStatus()". Problem found by "staticcheck".
2023-05-19 14:16:22 +02:00
Thomas Kohler 946131356e
fix/add some comments (#901) 2023-02-14 13:57:24 +01:00
Thomas Kohler c8335aaf85
BUGFIX: I2C connection-bus caching and multiple device usage 2023-02-04 13:22:22 +01:00
Thomas Kohler 6c7ecbe584
SPI using GPIO's plus driver for MFRC522 2023-01-05 19:04:32 +01:00
Thomas Kohler fdf4f4b194
Bugfix/Improvement: Introduce SpiBusAdaptor and spi.Driver for composition in platforms/drivers
and fix for #794
2022-12-17 11:56:11 +01:00
Thomas Kohler cef04066e3
Improve: use base driver for all I2C devices 2022-12-10 13:10:23 +01:00
Thomas Kohler 3559e7892e
Introduce I2cBusAdaptor for composition in platforms 2022-12-08 19:29:51 +01:00
Thomas Kohler be92fb6f9e
rename package "sysfs" to "system" 2022-11-20 19:22:26 +01:00
Thomas Kohler 34f7e77561
add PCA953x i2c driver 2022-11-13 18:47:19 +01:00
Thomas Kohler 421135fcc2 BUGFIX/IMPROVEMENT: sysfs accesser 2022-11-09 17:30:57 +01:00
Thomas Kohler 45abf11acc BUGFIX: tests with sysfs mocks 2022-10-30 18:47:56 +01:00
Thomas Kohler 9d1fd13a2f i2c PCF8583 clock and counter driver introduced 2022-10-22 13:12:09 +02:00
Thomas Kohler dd8a49c8cb GrovePi add read firmware version and DHT sensors 2022-10-21 16:33:09 +02:00
Thomas Kohler 16a453248e Update go.mod to 1.17 and all modules incl. code upgrades 2022-10-19 19:32:56 +02:00
Thomas Kohler cab50412e9
adjust analog sensor driver to prevent ReadValue() to get float64 2022-10-18 09:34:01 +02:00
Thomas Kohler 348c5af324 BUGFIX: Adafruit1109 bad characters on Halt() 2022-10-18 09:21:45 +02:00
Thomas Kohler 5cb8302117 BUGFIX/IMPROVEMENT: ADS1x15 2022-10-11 10:37:29 +02:00
Thomas Kohler 0dcec286f8 FEATURE: CCS811 use ReadBlockData() 2022-10-10 09:18:41 +02:00
Thomas Kohler fd1231f0ba MPL115A2 use WriteByteData() and ReadBlockData() 2022-10-10 07:48:58 +02:00
Thomas Kohler 6f970f7f6c FEATURE: bmxy8z use ReadBlockData 2022-10-10 06:51:39 +02:00
Thomas Kohler 038853286d ADXL345 use ReadBlockData() 2022-10-07 19:40:55 +02:00
Thomas Kohler 7b9d77bcc7 FIX: issue 805 by rename 2022-10-03 13:52:09 +02:00
Thomas Kohler ae34b72eaa BUGFIX/Improvement: missing HMC5883L byte swap 2022-10-03 13:51:58 +02:00
Thomas Kohler d097fae08d BUGFIX/Improvement: MPU6050 init and values 2022-10-03 12:05:07 +02:00
Thomas Kohler b4028e02ea BUGFIX/Improvement: L3GD20H full scale range usage 2022-10-02 16:31:57 +02:00
Thomas Kohler 2476bd9541 BUGFIX/Improvement: TH02 wrong register for heater, use i2c.Driver 2022-10-02 15:47:41 +02:00
Thomas Kohler 28c08be4a8 introduce PCA9501 driver inspired by mcp23017_driver and example for digispark 2022-10-02 14:51:53 +02:00
Thomas Kohler ad59d23e2e introduce generic i2c.Driver with example for digispark
fix missing/wrong entries in README
stabilize test
2022-10-02 14:18:08 +02:00
Thomas Kohler fc4894bd51 NEW: i2c.ReadBlockData(), BUGFIX: Read*Data() in digispark and some small other fixes 2022-10-01 17:33:02 +02:00
Thomas Kohler f536c35f35 adjust analog sensor driver to prevent ReadValue() to get float64 2022-07-13 20:09:31 +02:00
Thomas Kohler 3b3ad4df0e add AnalogActuatorDriver, analog temperature sensor, driver for PCF8591 (with 400kbit stabilization), driver for YL-40 2022-04-24 11:14:45 +02:00
Thomas Kohler 63472854a6 mcp23017: add mutex for write, hd44780: fix mutexes 2022-04-17 16:29:33 +02:00
Thomas Kohler 4565cc38de introduce adafruit1109 2x16 LCD with 5 keys 2022-04-17 16:29:33 +02:00
Thomas Kohler 1cd34fdde0 don't panic on 'With*' allow simpler wrapping of drivers 2022-04-08 19:42:13 +02:00
Thomas Kohler abbeeeb14c switch off debug 2022-04-08 19:42:13 +02:00
Thomas Kohler ee7bc59a9c add tests, shrink access to some internal variables 2022-04-08 19:42:13 +02:00
Thomas Kohler 491b14f1b9 introduce speed optimizations and related tests 2022-04-08 19:42:13 +02:00
Thomas Kohler 52f13b70b8 final cleanup of code and tests 2022-04-08 19:42:13 +02:00
Thomas Kohler d43d3430d9 fixed PinMode, SetPullUp and SetPolarity, unit tests activated 2022-04-08 19:42:13 +02:00
Thomas Kohler 37eeda80f5 ReadGPIO fixed with #576, failing leftovers for PinMode, SetPullUp and SetPolarity 2022-04-08 19:42:13 +02:00
Thomas Kohler 954d535093 failing leftovers after usage of PR #569 2022-04-08 19:42:13 +02:00
Thomas Kohler b673706fef prepare refactoring of PR569 2022-04-08 19:42:13 +02:00
Thomas Kohler 8f995aa272 FIX the bug #568 without further impact, heavy improvements of tests 2022-04-08 19:42:13 +02:00