Skip to content

Commit 0dcf40c

Browse files
committed
Start populating 0.14.0 changelog
1 parent b2fa16e commit 0dcf40c

File tree

2 files changed

+52
-3
lines changed

2 files changed

+52
-3
lines changed

CHANGELOG.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,54 @@
11
# Changelog
22

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+
352
## 0.13.5
453

554
### New Components

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ High-level abstraction in Ruby makes hardware classes easy to implement, with in
2323
Full list of supported mircocontroller platforms, interfaces, and peripherals is located [here](HARDWARE.md).
2424

2525
##### denko-piboard
26-
The [denko-piboard](https://github.com/denko-rb/denko-piboard) add-on gem, uses a Raspberry Pi's built in GPIO header instead of an attached microcontroller. Connect things directly to the Pi, and use the peripheral classes from this gem.
26+
The [denko-piboard](https://github.com/denko-rb/denko-piboard) gem adds a `Board`-compatible class for built-in GPIO headers on single-board-computers (eg. Raspberry Pi). Connect peripherals directly to the SBC, and use their classes from this gem.
2727

2828
##### mruby-denko
29-
A solo Raspberry Pi (or other SBC + microcontroller) is great if you need the compute power anyway, but what if you don't? Why not run Ruby on the microcontroller itself?
29+
A SBC (or computer + microcontroller combo) is great if you need the power anyway, but what if you don't? Why not run Ruby on the microcontroller itself?
3030

31-
That's the goal of [mruby-denko](https://github.com/denko-rb/mruby-denko): write mruby on the ESP32, using peripheral classes as close to this gem as possible. Still early in development, so limited features, but already usable.
31+
That's the aim of [mruby-denko](https://github.com/denko-rb/mruby-denko): run mruby on the ESP32, using peripheral classes as close to this gem as practical. Still early in development (limited features), but already usable.
3232

3333
## Getting Started
3434

0 commit comments

Comments
 (0)