|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 0.14.0 |
| 4 | + |
| 5 | +### New Peripherals |
| 6 | + |
| 7 | +- ADS1100 Analog-to-Digital Converter: |
| 8 | + - Class: `Denko::AnalogIO::ADS1100`. |
| 9 | + - Connects via I2C bus. Driver written in Ruby. |
| 10 | + - Modeled after `AnalogIO::Input` since it's a single channel ADC. |
| 11 | + - Can be read directly with `#read` or polled with `#poll`. |
| 12 | + - Full scale voltage must be givin in the initailize hash, `full_scale_voltage:`. |
| 13 | + - Gain and sample rate configurable. |
| 14 | + - See example for more. |
| 15 | + |
| 16 | +### Peripheral Interface Changes |
| 17 | + |
| 18 | +- `I2C::Peripheral`: |
| 19 | + - `#i2c_read` arg order changed from (register, num_bytes) to (num_bytes, register: nil) |
| 20 | + |
| 21 | +- `AnalogIO::Input`: |
| 22 | + - Added `#smoothing=` and `#smoothing_size=` accessors to `AnalogIO::Input` for configuring smoothing. |
| 23 | + - `AnalogIO::Sensor` removed. Use this instead. |
| 24 | + |
| 25 | +- `LED::RGB`: |
| 26 | + - `#write` takes 3 regular args now. Use `*array` instead to pass an array. |
| 27 | + - `#color` only takes a symbol for one of the predefined colors (or :off) now. |
| 28 | + |
| 29 | +- Temperature / Humidity / Pressure Sensors: |
| 30 | + - `DS18B20`, `DHT` and `HTU21D` readings now match all the others (Hash with same keys). |
| 31 | + - Readings standardized to be in ºC, %RH and Pascals. Callbacks always receive hash with these. |
| 32 | + - Added `#temperature_f` `#temperature_k` `#pressure_atm` `#pressure_bar` helper conversion methods. |
| 33 | + - `[]` access for `@state` removed removed. |
| 34 | + - `#read` methods standardized to always read ALL sub-sensors. Affects `HTU21D` and `BMP180`. |
| 35 | + |
| 36 | +- `DigitalIO::RotaryEncoder`: |
| 37 | + - Pin names standardized to `a:` and `b:`, but still accept "clock", "data", "clk", "dt". |
| 38 | + |
| 39 | +- `Motor::Stepper`: |
| 40 | + - Replaced `#step_cc` with `#step_ccw`. |
| 41 | + |
| 42 | +### CLI Changes |
| 43 | + |
| 44 | +- All Atmel targets now prefixed with "at". Eg. `atsamd21` now, instead of `samd21` before. |
| 45 | + |
| 46 | +### Bug Fixes |
| 47 | + |
| 48 | +- More accurate pin counts when initializing digital listener storage for different boards. |
| 49 | +- Fix a bug where ADS111X sensors were incorrectly validating sample rate when set. |
| 50 | +- Fix a bug where handshake could fail if board was left in a state where it kept transmitting data. |
| 51 | + |
3 | 52 | ## 0.13.5 |
4 | 53 |
|
5 | 54 | ### New Components |
|
0 commit comments