Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Issue 1389573002: Refactor Raspberry Pi GPIO and add GPIO mock (Closed)

Created:
5 years, 2 months ago by Søren Gjesse
Modified:
5 years, 2 months ago
Reviewers:
mit, wibling, sigurdm
CC:
fletch+reviews_googlegroups.com
Base URL:
git@github.com:dart-lang/fletch.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Refactor Raspberry Pi GPIO and add GPIO mock * Provide access to GPIO from the RaspberryPi class * Move the RPi memory mapped GPIO implementation to the RPi package * Add a simple GPIO mock class to the gpio package * Update all the samples I have tested all samples manually. R=mit@google.com, sigurdm@google.com, wibling@google.com BUG= Committed: https://github.com/dart-lang/fletch/commit/2ca94db0117a85c981a8042b6ae735e4fd578e53

Patch Set 1 #

Patch Set 2 : Fixed come commetns #

Total comments: 6

Patch Set 3 : Updated blinky to not use GPIO #

Patch Set 4 : Removed unused code #

Total comments: 8

Patch Set 5 : Remove unused constant #

Unified diffs Side-by-side diffs Delta from patch set Stats (+384 lines, -178 lines) Patch
M pkg/gpio/lib/gpio.dart View 9 chunks +21 lines, -160 lines 0 comments Download
A pkg/gpio/lib/gpio_mock.dart View 1 1 chunk +65 lines, -0 lines 0 comments Download
M pkg/raspberry_pi/lib/raspberry_pi.dart View 3 chunks +200 lines, -0 lines 0 comments Download
M samples/raspberry_pi/basic/blinky.dart View 1 2 3 4 1 chunk +7 lines, -8 lines 0 comments Download
M samples/raspberry_pi/basic/buzzer.dart View 1 chunk +4 lines, -2 lines 0 comments Download
M samples/raspberry_pi/basic/door-bell.dart View 2 chunks +6 lines, -4 lines 0 comments Download
M samples/raspberry_pi/basic/knight-rider.dart View 2 chunks +8 lines, -4 lines 0 comments Download
A tests/pkg/gpio/gpio_mock_test.dart View 1 chunk +73 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Søren Gjesse
5 years, 2 months ago (2015-10-04 15:59:03 UTC) #1
mit
On 2015/10/04 15:59:03, Søren Gjesse wrote: Overall lgtm I think we should change the blinky ...
5 years, 2 months ago (2015-10-05 06:47:47 UTC) #2
Søren Gjesse
Updated blinky to not use GPIO.
5 years, 2 months ago (2015-10-05 07:18:55 UTC) #3
sigurdm
LGTM https://codereview.chromium.org/1389573002/diff/20001/pkg/gpio/lib/gpio.dart File pkg/gpio/lib/gpio.dart (right): https://codereview.chromium.org/1389573002/diff/20001/pkg/gpio/lib/gpio.dart#newcode150 pkg/gpio/lib/gpio.dart:150: SysfsGPIO([int pins = GPIO.defaultPins]): super(pins) { How come ...
5 years, 2 months ago (2015-10-05 07:22:18 UTC) #4
sigurdm
LGTM
5 years, 2 months ago (2015-10-05 07:22:21 UTC) #5
mit
https://codereview.chromium.org/1389573002/diff/20001/samples/raspberry_pi/basic/blinky.dart File samples/raspberry_pi/basic/blinky.dart (right): https://codereview.chromium.org/1389573002/diff/20001/samples/raspberry_pi/basic/blinky.dart#newcode25 samples/raspberry_pi/basic/blinky.dart:25: gpio.setPin(led, true); I think we should change this to ...
5 years, 2 months ago (2015-10-05 07:26:13 UTC) #6
wibling
lgtm https://codereview.chromium.org/1389573002/diff/60001/pkg/gpio/lib/gpio_mock.dart File pkg/gpio/lib/gpio_mock.dart (right): https://codereview.chromium.org/1389573002/diff/60001/pkg/gpio/lib/gpio_mock.dart#newcode26 pkg/gpio/lib/gpio_mock.dart:26: checkPinRange(pin); NIT: You could enforce the mode on ...
5 years, 2 months ago (2015-10-05 07:43:38 UTC) #7
Søren Gjesse
https://codereview.chromium.org/1389573002/diff/20001/pkg/gpio/lib/gpio.dart File pkg/gpio/lib/gpio.dart (right): https://codereview.chromium.org/1389573002/diff/20001/pkg/gpio/lib/gpio.dart#newcode150 pkg/gpio/lib/gpio.dart:150: SysfsGPIO([int pins = GPIO.defaultPins]): super(pins) { On 2015/10/05 07:22:18, ...
5 years, 2 months ago (2015-10-05 07:43:40 UTC) #8
Søren Gjesse
5 years, 2 months ago (2015-10-05 07:44:09 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
2ca94db0117a85c981a8042b6ae735e4fd578e53 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698