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

218 Commits

Author SHA1 Message Date
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
Karan Misra
193385104d doc: fixes 2014-03-29 09:47:22 +05:30
Karan Misra
c3419d3e1b doc: remove markdown from .go doc 2014-03-29 09:46:45 +05:30
Kunal Powar
e6854c3726 doc: pwm 2014-03-28 08:39:36 +05:30
Kunal Powar
14b078a43e gpio: pwm support for bbb 2014-03-28 08:32:22 +05:30
Karan Misra
8d9f991fb0 doc: update 2014-03-28 08:25:38 +05:30
Karan Misra
c83a655aba doc: update 2014-03-26 10:10:57 +05:30
Karan Misra
8a556df770 Host type is now a string 2014-03-24 03:04:58 +05:30
Karan Misra
6802eb3fa0 - use a Register() method to register describers, instead of directly
setting on a map
- allow the host, rev to be overridden by the user
2014-03-24 03:01:58 +05:30
Karan Misra
0842517208 refactor 2014-03-24 02:50:24 +05:30
Karan Misra
7851abbedf doc: update the build status image to the new svg format 2014-03-23 16:06:50 +05:30
Karan Misra
6634116954 add the reference to samples folder in the package doc 2014-03-23 15:50:20 +05:30
Karan Misra
c39476a12e minor cleanup 2014-03-23 15:48:09 +05:30
Karan Misra
d171cfdc90 documentation changes 2014-03-23 15:47:58 +05:30
Karan Misra
5c8ea918ab gpio: analogpin doesn't support write (that will come from pwm) 2014-03-23 14:29:56 +05:30