gobot
gobot copied to clipboard
Golang framework for robotics, drones, and the Internet of Things (IoT)
TH02 reads the register content of register "0x11" (17) which is the ID register. The heater information is accessible in configuration register 0x03, bit1.
There are a couple of unhanded error cases in the joysick_driver.go code the Start method begins with a switch statement to handle a various conditions. The default case is to...
I modified the blink demo to be clear about what it''s toggling and when, and what its prerequisites are. ``` /* * blinktest - blink the USR1 LED on the...
Hi, I am trying to use Gobot with gokrazy (on a Raspberry Pi 3). To get GPIO working, adding `CONFIG_GPIO_SYSFS=y` to the [`.config`](https://github.com/gokrazy/kernel/blob/master/cmd/gokr-build-kernel/build.go#L19) is enough. The only problem is, that...
This is for issue #838 * FIX: initialization sequence * FIX: temperature resolution to float64 * FIX: Acceleration values now has unit [m²/s] * FIX: Gyroscope values now has the...
The initialization routine seems to be an adaptation of the [https://github.com/adafruit/Adafruit_CircuitPython_MPU6050](https://github.com/adafruit/Adafruit_CircuitPython_MPU6050/blob/4ec1d2c264816bfb1340b1191b8242abd9b45eb3/adafruit_mpu6050.py#L181) but have some mistakes: * "RWBits" and "RWBit" working in a different way like "i2c.Write()", which only supports a...
This PR adds BLE support for Windows and also removes macOS specific UUID code no longer needed.
* fix #830 * add unit tests for reading * add some constants and With functions for "samples averaged", "data output rate", "applied bias" and "gain" * fix #805
According to the [Kernel specification](https://docs.kernel.org/i2c/smbus-protocol.html#smbus-block-read) it should be possible to implement this function. The opposite ["WriteBlockData()" is still implemented](https://github.com/hybridgroup/gobot/blob/d8081f912d324f570c6e3fa74aba7c203e53bb27/drivers/i2c/i2c.go#L44). Following drivers could be simplified: * [th02_driver.go](https://github.com/hybridgroup/gobot/blob/d8081f912d324f570c6e3fa74aba7c203e53bb27/drivers/i2c/th02_driver.go#L234) * [mpu6050_driver.go](https://github.com/hybridgroup/gobot/blob/d8081f912d324f570c6e3fa74aba7c203e53bb27/drivers/i2c/mpu6050_driver.go#L100) * [mpl115a2_driver.go](https://github.com/hybridgroup/gobot/blob/d8081f912d324f570c6e3fa74aba7c203e53bb27/drivers/i2c/mpl115a2_driver.go#L120)...
According to the datasheet section "Data Output X Registers A and B" the values should be in 2s complement form +0xF800 ... 0x07FF (-2048 ... +2047). In case of an...