1
0
mirror of https://github.com/kidoman/embd synced 2024-11-12 20:48:55 +01:00
Commit Graph

282 Commits

Author SHA1 Message Date
Kunal Powar
faa686f01c spi: changes in fields/symbols to follow idiomatic go 2014-04-28 03:13:57 +05:30
Kunal Powar
12db8443b0 spi: added spi feature for all bbb and rpi 2014-04-28 01:18:14 +05:30
Karan Misra
fdd1d6b5c3 samples: universal blinker example 2014-04-25 02:28:01 +05:30
Karan Misra
e73b70b296 samples: changes to led
- blink every 250 msec
- use Println instead of Printf with \n
2014-04-25 02:27:44 +05:30
Karan Misra
e97394e7c2 doc: format the example go code properly 2014-04-24 03:03:38 +05:30
Karan Misra
9da9a5c021 ci: do not build the go-rpi branch 2014-04-24 03:03:20 +05:30
Karan Misra
ce4fab41da samples: change simpleblinker to match docs 2014-04-24 03:03:02 +05:30
Karan Misra
7bbad67d14 doc: -superheroic 2014-04-16 14:05:13 +05:30
Karan Misra
94e2ca4ae3 doc: cleanup
also, change the code in simpleblinker.go to match the docs
2014-04-13 14:02:15 +05:30
Karan Misra
7c51f968af doc: make the LED example unambiguous 2014-04-12 10:16:35 +05:30
Karan Misra
be0c0daf48 samples: cleanup 2014-04-11 17:50:23 +05:30
Karan Misra
175436be65 doc: don't need to install glog explicitly anymore 2014-04-11 14:01:49 +05:30
Karan Misra
51ec19d6a1 hal: log when host is registered 2014-04-11 13:59:58 +05:30
Karan Misra
138c100f8d doc: add 'Getting Started' section 2014-04-11 11:04:03 +05:30
Karan Misra
946aa2694f samples: full blinker rpi example
this is a more complete version of the simple blinker. this cleans up
after itself
2014-04-11 10:51:29 +05:30
Karan Misra
ad9dea5616 samples: simpleblinker rpi example
does not cleanup up after itself, but is concise
2014-04-11 09:21:31 +05:30
Karan Misra
94f99476c2 allow lazy initialisation of the drivers
this allows brevity in the sample codes (and should not be misutilized
in real world applications)
2014-04-11 09:19:03 +05:30
Karan Misra
9ac0872493 rpi: led support
this adds support for controlling the green LED (the one next to the red
power LED)
2014-04-11 09:12:45 +05:30
Karan Misra
859a6619f8 samples: these are specific to bob, so only load the bbb host 2014-04-11 09:10:17 +05:30
Karan Misra
87e958c01d doc: cleanup + consistency
Platform supported -> Platform Supported
2014-04-11 08:05:59 +05:30
Karan Misra
860c374544 doc: getting help 2014-04-11 08:05:15 +05:30
Karan Misra
4ebfe9ccc7 doc: how to contribute 2014-04-11 07:58:38 +05:30
Karan Misra
03dc549a01 doc: add the about section 2014-04-11 07:58:38 +05:30
Kunal Powar
68ba342e1b i2c: added debug logs 2014-04-10 07:38:14 +05:30
Kunal Powar
2ee0cbc899 i2c: fixed missing init call 2014-04-10 07:29:06 +05:30
Karan Misra
5c0ae1c83a doc: add roadmap 2014-04-07 02:45:20 +05:30
Karan Misra
1f083ce3bd doc: clarity ThoughtWorks role 2014-04-07 02:38:55 +05:30
Karan Misra
ebfe2e5796 cli: initial commit
this introduces the embd cli tool
2014-04-07 02:37:49 +05:30
Karan Misra
c35deeb17c host specific drivers can now be loaded separately
this ensures cleaner abstractions/code and will ensure that the produced
binary is as small as possible. a convenience package is provided to
easily load all hosts easily: "github.com/kidoman/embd/host/all"
2014-04-06 06:50:09 +05:30
Karan Misra
57328c979d gpio: implement pin caching
this allows for the short version of the API to work as expected as
consecutive calls to the same pin would now be internally working on the
pin instance (all the 3 currently supported types). closing a pin busts
the cache
2014-04-06 05:30:54 +05:30
Karan Misra
6f90af377d gpio: create types for the pin factory methods 2014-04-06 04:52:11 +05:30
Karan Misra
d16c010c3d samples: servobbb cleanup 2014-04-06 04:09:40 +05:30
Karan Misra
18ea690072 samples: fix servobbb sample 2014-04-06 04:09:28 +05:30
Karan Misra
18c574b7c8 gpio: fix failing tests 2014-04-06 04:08:44 +05:30
Karan Misra
0c193071ed ci: fix travis.yml so that failure is captured properly
subtle errors in the config were causing test failures to be ignored
2014-04-06 04:06:22 +05:30
Karan Misra
2172e9384c gpio: cleanup test code 2014-04-06 04:05:18 +05:30
Karan Misra
5b852d9f42 gpio: provide an api to allow performance timing of pulses
the us020 driver is the first consumer of this functionality
2014-04-05 04:06:40 +05:30
Kunal Powar
af23a999ba us020: make the state comparisons clearer 2014-04-05 01:45:11 +05:30
Kunal Powar
6cfe268ada bbb: initialise at the start of SetMicroseconds
this will setup p.period to the default if not already done
2014-04-05 01:44:02 +05:30
Kunal Powar
779096e668 samples: enable flag parsing
this will allow people to use glog options (like -v=3) to increase
verbosity of the log output
2014-04-05 01:43:16 +05:30
Kunal Powar
10992981e3 gpio: remove edge file handling from digital pin
to be handled in future
2014-04-05 01:30:04 +05:30
Kunal Powar
a6e3902eb0 gpio: fix a bug which prevented digital pins reads from working correctly
when reading from the value file, it is important to seek back to the front
so that we get the fresh values from the kernel driver for every new read
2014-04-05 01:28:15 +05:30
Karan Misra
fc887282bf unified servo and analog output support for pwms 2014-04-02 17:25:28 +05:30
Karan Misra
9ab49745bc - use glog instead of Debug flag
- use glog instead of log
- make code conform to the Go code guidelines
2014-03-31 18:46:04 +05:30
Karan Misra
ca17879e6e remove the old spi driver 2014-03-30 04:19:33 +05:30
Karan Misra
6342dd3a19 bbb: add a comment explaining why we cannot disable the analog and pwm
modules by removing them from the slots file
2014-03-30 04:15:21 +05:30
Karan Misra
9210e4ef1a move the Register calls to the bottom 2014-03-30 04:14:33 +05:30
Karan Misra
ea3afb8538 bbb: disable the pwm pin when closed 2014-03-29 19:19:40 +05:30
Karan Misra
f7e8cb31d4 doc: group the bbb constants together 2014-03-29 14:22:57 +05:30
Kunal Powar
ac32623864 doc: pwm constants 2014-03-29 13:39:30 +05:30