Skip to content

Commit b782498

Browse files
committed
Merge branch 'master' into dev
Conflicts: CHANGELOG.md Makefile platforms/intel-iot/edison/edison_adaptor.go platforms/intel-iot/edison/edison_adaptor_test.go platforms/intel-iot/edison/pwm_pin.go platforms/intel-iot/intel-iot.go platforms/leap/leap_motion_adaptor.go platforms/leap/leap_motion_driver.go platforms/sphero/sphero_driver.go scripts/travis.sh version.go
2 parents 8426639 + 8e8d990 commit b782498

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,28 @@
2626
- sysfs
2727
- Add generic linux filesystem gpio implementation
2828

29+
0.6.3
30+
---
31+
- Add support for the Intel Edison
32+
33+
0.6.2
34+
---
35+
- cli
36+
- Fix typo in generator
37+
- leap
38+
- Fix incorrect Port reference
39+
- Fix incorrect Event name
40+
- neurosky
41+
- Fix incorrect Event names
42+
- sphero
43+
- Correctly format output of GetRGB
44+
>>>>>>> master
45+
2946
0.6.1
3047
---
3148
- cli
3249
- Fix template error in generator
3350

34-
3551
0.6
3652
---
3753
- api

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
PACKAGES := gobot gobot/api gobot/platforms/intel-iot/edison gobot/sysfs $(shell ls ./platforms | sed -e 's/^/gobot\/platforms\//')
2-
32
.PHONY: test cover robeaux
43

54
test:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ Gobot has a extensible system for connecting to hardware devices. The following
9595
- [Arduino](http://www.arduino.cc/) <=> [Library](https://github.com/hybridgroup/gobot/tree/master/platforms/firmata)
9696
- [Beaglebone Black](http://beagleboard.org/Products/BeagleBone+Black/) <=> [Library](https://github.com/hybridgroup/gobot/tree/master/platforms/beaglebone)
9797
- [Digispark](http://digistump.com/products/1) <=> [Library](https://github.com/hybridgroup/gobot/tree/master/platforms/digispark)
98+
- [Intel Edison](http://www.intel.com/content/www/us/en/do-it-yourself/edison.html) <=> [Library](https://github.com/hybridgroup/gobot/tree/master/platforms/intel-iot/edison)
9899
- [Joystick](http://en.wikipedia.org/wiki/Joystick) <=> [Library](https://github.com/hybridgroup/gobot/tree/master/platforms/joystick)
99100
- [Leap Motion](https://www.leapmotion.com/) <=> [Library](https://github.com/hybridgroup/gobot/tree/master/platforms/leapmotion)
100101
- [Neurosky](http://neurosky.com/products-markets/eeg-biosensors/hardware/) <=> [Library](https://github.com/hybridgroup/gobot/tree/master/platforms/neurosky)

platforms/digispark/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This package requires `libusb`.
1111
To install `libusb` on OSX using Homebrew:
1212

1313
```
14-
$ brew install libusb
14+
$ brew install libusb && brew install libusb-compat
1515
```
1616

1717
### Ubuntu

platforms/sphero/sphero_driver.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,11 @@ func (s *SpheroDriver) SetRGB(r uint8, g uint8, b uint8) {
183183

184184
// GetRGB returns the current r, g, b value of the Sphero
185185
func (s *SpheroDriver) GetRGB() []uint8 {
186-
return s.getSyncResponse(s.craftPacket([]uint8{}, 0x02, 0x22))
186+
buf := s.getSyncResponse(s.craftPacket([]uint8{}, 0x02, 0x22))
187+
if len(buf) == 9 {
188+
return []uint8{buf[5], buf[6], buf[7]}
189+
}
190+
return []uint8{}
187191
}
188192

189193
// SetBackLED sets the Sphero Back LED to the specified brightness
@@ -244,7 +248,7 @@ func (s *SpheroDriver) getSyncResponse(packet *packet) []byte {
244248
return response
245249
}
246250
}
247-
time.Sleep(10 * time.Microsecond)
251+
time.Sleep(100 * time.Microsecond)
248252
}
249253

250254
return []byte{}

0 commit comments

Comments
 (0)