David Kebler
d3f905e86c
0.1.36 update deps
2019-11-21 10:05:53 -08:00
David Kebler
6b137abb71
0.1.33 remove emitting from find (can do local stuff via interrupt processor. update from changes to sockets
2019-04-28 10:09:05 -07:00
David Kebler
d75c431231
0.1.32 update i2c-device dep after fixing socket access
2019-04-27 15:53:16 -07:00
David Kebler
01a7b8ccf0
0.1.31 update deps, cleanup logging
2019-04-26 11:21:24 -07:00
David Kebler
6a0b33d2b3
0.1.28
2019-04-20 16:44:57 -07:00
David Kebler
7e0327ebf0
removed removed this.pins to revert back to using this.commands.pins
...
emit locally on interrupt
2019-04-20 16:44:32 -07:00
David Kebler
ea9a04f6dc
0.1.27 reworked mcp interrupt class to be more robust resetting the interrupt
...
added a reset command to allow other processes to trigger an mcp port interrupt reset
2019-04-11 21:15:55 -07:00
David Kebler
d28d05b2aa
0.1.26 update uci socket
2019-03-24 11:54:50 -07:00
David Kebler
73de63a32d
0.1.25 Set Port B pins aslo to outputs by default
2019-03-22 18:04:09 -07:00
David Kebler
c497e0fd27
0.1.24 bump version for @uci-utils/byte
2019-03-22 11:25:35 -07:00
David Kebler
bbe8ee511c
0.1.23 refactored pin configuration types. Now output and 5 flavors of input (4 of which interrupt inputs)
...
swapped order of package returned for interrupt find so that the pin state is not lost (overwritten)
2019-03-16 16:45:42 -07:00
David Kebler
b987c446a4
0.1.22 fix chip config bug for 23008, for interrupt find packet pass on all props from interrupt.
2019-03-11 14:54:06 -07:00
David Kebler
be1787fa45
0.1.21 added/improved chip configuration now have two more intPullup and intPullupOneInt
...
fixed issue with forEach by replacing with for loop on pins configuration so it would do in correct order.
added some logging on commands file
2019-03-08 09:10:33 -08:00
David Kebler
f6b40be73b
0.1.20 make sure options don't mutuate, also that if pin is string it gets cast to number
2019-03-07 13:00:00 -08:00
David Kebler
078b24e9d7
0.1.19
...
alter the multple pin options processing, now accepts opts.interrupt and deals with port and path so as to match uci/interrupt options changes when making consumers
2019-03-06 16:46:07 -08:00
David Kebler
7ede4d93b5
0.1.18 update i2c-device which has a fixed issue for the device address number
2019-02-26 11:59:46 -08:00
David Kebler
a44e6426d2
0.1.17 incorporate new byte utility location, and logging
2019-02-26 10:46:20 -08:00
David Kebler
54a2c237f3
little cleanup
...
update dependencies
2019-01-01 19:45:25 -08:00
David Kebler
16cea2ef02
made find function more robust against user abuse like flipping switches fast and continuouly.
...
changed the reset command to be for pushed reset request and moved old/actual reset to private function of class.
Now when instance connects to interrupt socket it should get a reset command pushed.
2018-07-31 17:11:43 -07:00
David Kebler
95926a892c
reorganizes commands
...
add new server/socket namespace "commands" for server side base module
add new namespace "commands" for consumer side for interrupt version of module
2018-07-31 10:35:53 -07:00
David Kebler
1497491d9c
moved to master branch after copying master to V1
...
removed V1 stuff
2018-05-28 15:14:30 -07:00
David Kebler
a0eb28fdc0
upgrade to esm from @std/esm
2018-05-16 07:19:03 -07:00
David Kebler
9652041671
added mcp interrupt extension class that adds functionality to handle the mcp port interrupt using and external socket
2018-04-05 15:48:22 -07:00
David Kebler
0de3dfd825
change module name and loading/main
...
update interrupt pin processing for interrupt module changes
2018-03-02 08:41:06 -08:00
David Kebler
31c15c2230
add no pullup input
...
update interrupt processing
add index to src/
2018-03-02 08:30:54 -08:00
David Kebler
cb1977a8ea
add mcp interrupt processing commands, find, reset
2018-02-23 21:16:35 -08:00
David Kebler
5833f42464
removed the two default mcp sockets. Make them as needed instead.
...
Now just pass i2c bus options through to i2c-device.
updated all packages.
2018-02-23 13:44:40 -08:00
David Kebler
342c6f98d2
improve refactor socket options, add _state to module export and bind all functions in pins and chip
2018-02-17 18:25:27 -08:00
David Kebler
3c21bd66da
refactored to use new uci-i2c-device packet module
2018-02-14 19:01:08 -08:00
David Kebler
da862a7c1a
remove busSend now using base's send and sockets await send
...
add chip option chip17 when using 230017
add relay example
2018-02-13 18:21:59 -08:00
David Kebler
f605508982
fixed chip.cfg so it sets BANK=1 correctly
...
added pin.status to read a pin, defaults to gpio regsiter if no reg: given in packet for others like olat
2018-02-11 19:56:44 -08:00
David Kebler
851b73c7f5
refactored pin config and pin state commands now handle various pins: property formats
2018-02-11 11:41:45 -08:00
David Kebler
8a9950459a
basic commands working
...
configure chip
ack chip
cfg pin
change state of pin (on,off,toggle)
2018-02-10 15:28:51 -08:00
David Kebler
71bd508a0c
first commit of packet based mcp code.
...
incoming packet interpreted and sent on to bus
listens for response and processes and sends back to requestor
Working pin.test example
2018-02-08 09:19:46 -08:00
David Kebler
35605352bf
fix bad comment
2017-10-18 17:35:30 -07:00
David Kebler
a46e9501eb
return boolean for read pin instead of pin number
2017-10-17 10:10:39 -07:00
David Kebler
6dcd4da327
updated
2017-06-23 11:03:50 -07:00
David Kebler
a7ea2e2372
fix toggleall issue
2017-06-02 00:11:31 -07:00
David Kebler
c83c0914b7
aggreate class with event emitter, add bubble up event emitter from interrupts to class
2017-05-30 13:26:49 -07:00
David Kebler
095a11064e
improved sample demo, added interrrupt demo, and added mocha hooks to test suite, added function to determine which pin of port fired the interrupt, added pin id to port pins
2017-05-29 22:12:01 -07:00
David Kebler
02b291811d
improved testing, significant start to readme, added sample demo
2017-05-28 00:00:26 -07:00
David Kebler
f428abc394
refactored port/pin simplified, refactored mcp config writes to async/await, new read/write mocha test
2017-05-26 21:00:04 -07:00
David Kebler
1a97705ab5
refactoring to include port/pin library. Moved some examples to become tests within repo
2017-05-26 08:14:29 -07:00
David Kebler
0fb62e2db1
added port read and write methods to mcp class
2017-05-24 21:15:54 -07:00
David Kebler
832a507204
refactoring using async/await and new interrupt class code based on pigpio. Handler keeps proper scope. Interrupts working!!!
2017-05-20 22:23:24 -07:00
David Kebler
1d659aeb58
start of conversion to async/await
2017-05-20 17:13:58 -07:00
David Kebler
9c88903d42
start of conversion to async/await
2017-05-20 17:13:14 -07:00
David Kebler
15e9c2fcd2
update packages to registry from git
2017-05-15 12:42:51 -07:00
David Kebler
7e3e92db14
add documentation
2017-05-15 11:03:31 -07:00
David Kebler
ecb455e7ea
add start method fix pinRead for port B
2017-02-21 21:41:25 -08:00