Commit Graph

8 Commits

Author SHA1 Message Date
deadprogram 953c3254e7 core: use canonical import domain of gobot.io for all code
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-08 13:24:03 +01:00
gmarik e494b9fb99 Refactor to use `gobottest` test helpers 2016-02-22 00:33:58 -05:00
Brian Stengaard 642ab409c1 Use Seek to speed up read/write in sysfs
This maintains `direction` and `value` `File`s for each DigitalPin
implementation. Instead of Open/Read/Close we now only do Seek/Read,
this speeds up Read/Write operations a bit.

A silly benchmark on the mock FS gives:

benchmark                  old ns/op     new ns/op     delta
BenchmarkDigitalRead-8     647           7.36          -98.86%

benchmark                  old allocs     new allocs     delta
BenchmarkDigitalRead-8     5              0              -100.00%

benchmark                  old bytes     new bytes     delta
BenchmarkDigitalRead-8     96            0             -100.00%
2016-02-18 21:18:45 +01:00
Adrian Zankich 25919240c2 Account for already exported pins and unexportable pins 2014-12-23 12:43:55 -08:00
Adrian Zankich a0bcef77fe Refactor sysfs to use internal fs 2014-11-07 16:21:39 -08:00
Adrian Zankich bf30571234 DigitalPin is now an interface 2014-11-03 19:02:20 -08:00
Adrian Zankich e78257c201 Add docs 2014-10-30 16:22:25 -07:00
Adrian Zankich a7cee22918 Add sysfs tests 2014-10-30 16:06:04 -07:00