Skip to content

Commit 962811b

Browse files
Create CHANGELOG.md
1 parent b776b45 commit 962811b

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed

CHANGELOG.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Changelog
2+
3+
## 0.2.0
4+
`rust_gpiozero` now uses [rppal](https://github.com/golemparts/rppal/) for gpio access
5+
6+
* **input_devices**
7+
- **InputDevice** changes:
8+
+ `pin` is now `u8`
9+
+ `new` configures device with the pin pulled to low by default
10+
+ Added `new_with_pullup`: create InputDevice with the pin number given with the pin pulled high with an internal resistor by default
11+
+ `value` returns a `bool`
12+
13+
- **DigitalInputDevice** changes:
14+
+ `pin` is now `u8`
15+
+ `new` configures device with the pin pulled to low by default
16+
+ Added `new_with_pullup`: create InputDevice with the pin number given with the pin pulled high with an internal resistor by default
17+
+ `value` returns a `bool`
18+
+ `wait_for_inactive` takes an argument `timeout` (Option<f32>)
19+
+ `wait_for_active` takes an argument `timeout` (Option<f32>)
20+
21+
- **Button** changes:
22+
+ `pin` is now `u8`
23+
+ `new` configures device with the pin pulled to `high` by default
24+
+ Added `new_with_pulldown`: create InputDevice with the pin number given with the pin pulled low with an internal resistor by default
25+
+ `value` returns a `bool`
26+
+ `wait_for_inactive` takes an argument `timeout` (Option<f32>)
27+
+ `wait_for_active` takes an argument `timeout` (Option<f32>)
28+
29+
* **output_devices**
30+
- **PWMOutputDevice** (New)
31+
+ A generic output device configured for software pulse-width modulation (PWM)
32+
+ Values can be specified between 0.0 and 1.0 for varying levels of power in the device.
33+
34+
- **PWMLED** (New)
35+
+ Represents a light emitting diode (LED) with variable brightness.
36+
+ Values can be specified between 0.0 and 1.0 for varying levels of brightness.
37+
38+
- **Servo** (New)
39+
+ Represents a PWM-controlled servo motor connected to a GPIO pin
40+
41+
- **OutputDevice** changes:
42+
+ `pin` is now `u8`
43+
+ Added `active_high`: When True, the value property is True when the device's pin is high. When False the value property is True when the device's pin is low (i.e. the value is inverted).
44+
+ Added `set_active_high` to set the state for `active_high`
45+
46+
- **DigitalOutputDevice** changes:
47+
+ `pin` is now `u8`
48+
+ Added `active_high`: When True, the value property is True when the device's pin is high. When False the value property is True when the device's pin is low (i.e. the value is inverted).
49+
+ Added `set_active_high` to set the state for `active_high`
50+
+ Added `blink` to make the device turn on and off repeatedly in the background.
51+
+ Added `set_blink_count`to set the number of times to blink the device
52+
+ Added `wait` which blocks until background blinking process is done
53+
54+
- **LED** changes:
55+
+ `pin` is now `u8`
56+
+ Added `active_high`: When True, the value property is True when the device's pin is high. When False the value property is True when the device's pin is low (i.e. the value is inverted).
57+
+ Added `set_active_high` to set the state for `active_high`
58+
+ Added `blink` to make the device turn on and off repeatedly in the background.
59+
+ Added `set_blink_count`to set the number of times to blink the device
60+
+ Added `wait` which blocks until background blinking process is done
61+
+ Added `is_lit` which returns True if the device is currently active and False otherwise.
62+
63+
- **Buzzer** changes:
64+
+ `pin` is now `u8`
65+
+ Added `active_high`: When True, the value property is True when the device's pin is high. When False the value property is True when the device's pin is low (i.e. the value is inverted).
66+
+ Added `set_active_high` to set the state for `active_high`
67+
+ Added `beep` to make the device turn on and off repeatedly in the background.
68+
+ Added `set_beep_count`to set the number of times to beep the device
69+
+ Added `wait` which blocks until background beeping process is done
70+
+ Removed `blink` method
71+
72+
- **Motor** changes:
73+
+ `formward_pin` and `backward_pin`are now `u8`
74+
+ Added `set_speed` method: Use `set_speed` to change the speed at which motors should turn. Can be any value between 0.0 and the default 1.0 (maximum speed)
75+
76+
* **device**
77+
- Renamed `GPIODevice` to `GpioDevice`

0 commit comments

Comments
 (0)