Philip Howard
2721ad682f
Merge pull request #381 from pimoroni/patch-optimise-breakout-rtc-args
...
Breakout RTC: Optimise required kwarg functions to positional.
2022-06-27 10:02:45 +01:00
Phil Howard
8d638e2744
MicroPython: Drop redundant Print. Saves 4K.
2022-06-13 18:59:51 +01:00
Phil Howard
28d555fa4e
Breakout RTC: Optimise required kwarg functions to positional.
2022-05-30 15:16:43 +01:00
Phil Howard
bc0390b86c
MicroPython: Use placement new to alloc classes on GC_HEAP
2022-05-23 15:34:49 +01:00
Phil Howard
1feefde00c
MicroPython: Promote machine.I2C() to PimoroniI2C.
...
Create a new PimoroniI2C object internally if a "machine.I2C()" object is supplied in constructors.
2022-05-18 13:20:33 +01:00
Phil Howard
b4c0d78ef7
Fix RTC year argument for #176
2021-07-07 17:11:02 +01:00
Phil Howard
66f6983290
Port remaining modules to PimoroniI2C, update examples
2021-05-18 11:18:41 +01:00
Phil Howard
445737088f
Switch drivers over to I2C class, tidy up common include
...
Removes all driver-specific SDA/SCL pin definitions and defaults.
Pin type is "uint" everywhere, but "PIN_UNUSED" is *int*_max for MicroPython compat. That's still a lot of pins!
Adds baudrate to the I2C class, and allows a driver (like Trackball) to check the baudrate is supported
2021-05-17 11:46:12 +01:00
ZodiusInfuser
1ee5101826
Fix for i2c select
2021-05-14 18:00:26 +01:00
ZodiusInfuser
f2ee2a4f8d
Better solution to keywords and constructors. Just for I2C for now
2021-05-14 17:14:07 +01:00
ZodiusInfuser
8cbc290de2
Fix for keyworks not always working in MP class constructors of breakouts (and removed some whitespaces)
2021-05-14 14:30:08 +01:00
ZodiusInfuser
7886b8e78d
Finished MP bindings for RV3028 and included a simple example
2021-05-14 13:15:39 +01:00
ZodiusInfuser
2be5528ec7
Partial micropython bindings for RV3028
2021-05-14 13:15:38 +01:00