Ayke van Laethem
4ff437e5d4
ws2812: add nrf52 support, update timings for m0 and avr
...
This commit adds support for the nrf52, which is a Cortex-M4 running at
64MHz.
While implementing this, I discovered that the timings for AVR/16MHz and
Cortex-M0 at 16MHz weren't quite right. They do work, but were slightly
out of spec. So I fixed this as well.
2019-02-22 07:10:22 +01:00
Ron Evans
1475a63798
docs: add BH1750 to README
...
Signed-off-by: Ron Evans <ron@hybridgroup.com >
2019-02-08 09:10:02 +01:00
Daniel Esteban
693e7a1db7
Added driver for BH1750 digital ambient light sensor ( #15 )
...
* Added driver for BH1750 digital ambient light sensor
2019-02-08 09:04:58 +01:00
Ron Evans
31bc74101d
examples: add example for apa102 ( #17 )
...
Signed-off-by: Ron Evans <ron@hybridgroup.com >
2019-02-07 14:52:05 +01:00
Ron Evans
7dfd72c1b1
examples: add example for mpu6050 ( #16 )
...
Signed-off-by: Ron Evans <ron@hybridgroup.com >
2019-02-07 14:51:45 +01:00
Ron Evans
bb56d49ce3
rename: make sure package name is consistent in all places after move to organization
...
Signed-off-by: Ron Evans <ron@hybridgroup.com >
2019-02-07 09:41:24 +01:00
Ron Evans
96b5daee8e
license: add BSD-3 license for the TinyGo Authors
...
Signed-off-by: Ron Evans <ron@hybridgroup.com >
2019-02-07 09:18:27 +01:00
Ron Evans
be048a35bf
docs: commit initial version of README file
...
Signed-off-by: Ron Evans <ron@hybridgroup.com >
2019-02-07 08:35:07 +01:00
Daniel Esteban
3af2f18437
Initial support for BMP180 digital pressure sensor ( #11 )
...
* Initial support for BMP180 digital pressure sensor
Note that Pressure & Temperature return int32 and millis unit (millidegrees
and mPa)
2019-02-06 08:50:40 +01:00
Ron Evans
773b01e911
apa102: add support for APA102 SPI controlled LEDs
...
Signed-off-by: Ron Evans <ron@hybridgroup.com >
2018-12-22 19:14:02 +01:00
Ayke van Laethem
4c21e79d0e
ws2812: switch to different color format
...
Use image/color.RGBA to represent RGB colors. This is more standard.
2018-12-22 16:37:36 +01:00
Ayke van Laethem
0d692cfd0a
ws2812: provide proper file-like interface in Device
...
* Return len and errors in the Write method, to implement io.Writer.
* Return a nil error in WriteByte, for compatibility with bufio.
2018-12-22 16:35:27 +01:00
Ayke van Laethem
aef8d42d42
ws2812: add support for the Arduino
2018-11-20 21:07:04 +01:00
Ron Evans
9d863fdf15
blinkm: add initial support for BlinkM I2C controlled RGB LED
...
Signed-off-by: Ron Evans <ron@hybridgroup.com >
2018-11-20 15:40:28 +01:00
Ron Evans
61f928136c
all: use New() constructor function for simplicity
...
Signed-off-by: Ron Evans <ron@hybridgroup.com >
2018-11-19 20:20:24 +01:00
Ron Evans
c386343c0d
build: add placeholder Go file to package root to allow for go get -d package installation
...
Signed-off-by: Ron Evans <ron@hybridgroup.com >
2018-11-19 12:25:00 +01:00
Ayke van Laethem
6f0ace9157
mag3110: add driver
2018-11-18 20:24:04 +01:00
Ayke van Laethem
36b00aac58
mpu6050: read gyroscope
2018-11-17 23:45:56 +01:00
Ayke van Laethem
53fbc39809
mpu6050: add driver
...
Only the accelerometer is supported at the moment.
2018-11-16 14:55:29 +01:00
Ayke van Laethem
16a5f82d44
ws2812: rename WS2812 to Device
...
This is more consistent with the other drivers.
2018-11-16 14:55:00 +01:00
Ayke van Laethem
947042e435
mma8653: rename ReadOrientation to ReadAcceleration
2018-11-16 14:54:18 +01:00
Ayke van Laethem
704ef734f5
mma8653: fix doc comments
2018-11-16 14:53:50 +01:00
Ayke van Laethem
c23954059f
ws2812: improve documentation
2018-11-16 12:21:17 +01:00
Ayke van Laethem
bd18c71604
mma8653: add driver
2018-11-16 12:06:16 +01:00
Ayke van Laethem
1f27817061
Initial commit
2018-10-15 20:47:33 +02:00