]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_lamp/log
acmetensortoys-esp-lua_lamp
8 years agofixes some minor typos in the color redrawing logic in a few drawings
Rachael [Tue, 20 Feb 2018 01:08:33 +0000 (17:08 -0800)]
fixes some minor typos in the color redrawing logic in a few drawings

8 years agoadded a reset button to immediately undim the lamp (using the dimming button to do...
Rachael [Tue, 20 Feb 2018 01:07:32 +0000 (17:07 -0800)]
added a reset button to immediately undim the lamp (using the dimming button to do it is annoying and error-prone)

8 years agofixes shifty2 to not interrupt the animation when changing colors
Rachael [Tue, 20 Feb 2018 00:54:08 +0000 (16:54 -0800)]
fixes shifty2 to not interrupt the animation when changing colors

8 years agofixes shifty to not interrupt the animation when changing colors and make it support...
Rachael [Tue, 20 Feb 2018 00:41:22 +0000 (16:41 -0800)]
fixes shifty to not interrupt the animation when changing colors and make it support two colors

8 years agomakes nom able to change color without starting the animation over
Rachael [Mon, 19 Feb 2018 23:57:24 +0000 (15:57 -0800)]
makes nom able to change color without starting the animation over

8 years agomakes the entire heart change color on touch rather than just the beating part
Rachael [Mon, 19 Feb 2018 19:54:00 +0000 (11:54 -0800)]
makes the entire heart change color on touch rather than just the beating part

8 years agotouch: initialize color table correctly
Nathaniel Wesley Filardo [Sat, 6 Jan 2018 19:12:40 +0000 (14:12 -0500)]
touch: initialize color table correctly

Failing this, it was possible to call into a drawing without a primary
color assigned, which could lead to any number of crashes.

8 years agotouch: fix conditional for redraw
Nathaniel Wesley Filardo [Fri, 5 Jan 2018 07:15:04 +0000 (02:15 -0500)]
touch: fix conditional for redraw

8 years agoCatch README.rst up with the world
Nathaniel Wesley Filardo [Wed, 3 Jan 2018 22:13:46 +0000 (17:13 -0500)]
Catch README.rst up with the world

8 years agoemulators: add touch emulator
Nathaniel Wesley Filardo [Wed, 3 Jan 2018 22:13:13 +0000 (17:13 -0500)]
emulators: add touch emulator

And some general refactoring.

8 years agotouch: initial use of info structure
Nathaniel Wesley Filardo [Wed, 3 Jan 2018 22:10:57 +0000 (17:10 -0500)]
touch: initial use of info structure

While here, some general tidying

8 years agodrawings: return information structure
Nathaniel Wesley Filardo [Wed, 3 Jan 2018 22:09:36 +0000 (17:09 -0500)]
drawings: return information structure

8 years agoAdd modules required to README
Nathaniel Wesley Filardo [Wed, 3 Jan 2018 01:16:48 +0000 (20:16 -0500)]
Add modules required to README

8 years agoTidy emulation code
Nathaniel Wesley Filardo [Wed, 3 Jan 2018 01:15:51 +0000 (20:15 -0500)]
Tidy emulation code

Several changes to catch up to past changes for consistency.
Add tmr.interval function for increased coverage of API, will be
used in upcoming commits.

8 years agoinit2: hackishly force wifi reconnects
Nathaniel Wesley Filardo [Sat, 23 Dec 2017 03:59:19 +0000 (22:59 -0500)]
init2: hackishly force wifi reconnects

8 years agoMake linux-draw understand -v from mosquitto_sub
Nathaniel Wesley Filardo [Sat, 23 Dec 2017 03:59:04 +0000 (22:59 -0500)]
Make linux-draw understand -v from mosquitto_sub

8 years agoheartstream: new drawing
Nathaniel Wesley Filardo [Mon, 20 Nov 2017 08:19:39 +0000 (03:19 -0500)]
heartstream: new drawing

Catch linux-draw-xpm.lua's emulation of the framebuffer up to enable
:shift() calls.

8 years agoheartbeat: multi-color support
Nathaniel Wesley Filardo [Mon, 20 Nov 2017 08:18:58 +0000 (03:18 -0500)]
heartbeat: multi-color support

8 years agoremoves some copied documentation that is inaccurate
Rachael [Thu, 16 Nov 2017 08:09:42 +0000 (00:09 -0800)]
removes some copied documentation that is inaccurate

8 years agoAdds a drawing of ones' finger sketching a heart
Rachael [Thu, 16 Nov 2017 08:07:49 +0000 (00:07 -0800)]
Adds a drawing of ones' finger sketching a heart

8 years agoInitial support for color palettes
Nathaniel Wesley Filardo [Tue, 7 Nov 2017 23:30:51 +0000 (18:30 -0500)]
Initial support for color palettes

See examples of usage in draw-snake2 and draw-together.
At present, there is no support in the touch module for this,
only via the message parser.

8 years agoScripting language, of sorts.
Nathaniel Wesley Filardo [Tue, 7 Nov 2017 22:37:29 +0000 (17:37 -0500)]
Scripting language, of sorts.

Messages now can use timers to switch between animations.  For example,
the single message

  label h; draw heartbeat f 0 0; in 3000 k; end; label k; draw kiss 0 f 0 ; in 3000 h; end;

will spend three seconds on each animation, looping forever.
The language may be subject to further refinement, of course.

While here, rework handoff between the remote and touch components
as well as the boot and network notification displays.

8 years agodraw-together: heart hands better together <3
Nathaniel Wesley Filardo [Tue, 7 Nov 2017 22:37:00 +0000 (17:37 -0500)]
draw-together: heart hands better together <3

8 years agotouch: sort drawings by name for selection
Nathaniel Wesley Filardo [Tue, 7 Nov 2017 23:29:32 +0000 (18:29 -0500)]
touch: sort drawings by name for selection

8 years agokiss: start on correct animation frame
Nathaniel Wesley Filardo [Tue, 7 Nov 2017 22:03:37 +0000 (17:03 -0500)]
kiss: start on correct animation frame

8 years agolinux-draw: add more tmr functions
Nathaniel Wesley Filardo [Tue, 7 Nov 2017 08:45:06 +0000 (03:45 -0500)]
linux-draw: add more tmr functions

8 years agolamp-touch also directly writes to LED array
Nathaniel Wesley Filardo [Sat, 23 Sep 2017 19:58:05 +0000 (15:58 -0400)]
lamp-touch also directly writes to LED array

As part of blackout logic.  So it needs to bounce the enabling GPIO.

8 years agoupdate init2 mqtt logic
Nathaniel Wesley Filardo [Thu, 21 Sep 2017 05:53:44 +0000 (01:53 -0400)]
update init2 mqtt logic

8 years agoGPIO block spew to LED array
Nathaniel Wesley Filardo [Thu, 21 Sep 2017 05:52:58 +0000 (01:52 -0400)]
GPIO block spew to LED array

8 years agoAdd note about AND gate to README
Nathaniel Wesley Filardo [Sun, 3 Sep 2017 04:52:14 +0000 (00:52 -0400)]
Add note about AND gate to README

8 years agolamp-remote: tonumber after checking regex result
Nathaniel Wesley Filardo [Sat, 26 Aug 2017 23:03:37 +0000 (19:03 -0400)]
lamp-remote: tonumber after checking regex result

Otherwise, r/g/b might be nil and tonumber(nil) doesn't work out well

8 years agoTweak emulator
Nathaniel Wesley Filardo [Wed, 23 Aug 2017 02:58:26 +0000 (22:58 -0400)]
Tweak emulator

8 years agoMove to independent repository
Nathaniel Wesley Filardo [Tue, 1 Aug 2017 00:24:26 +0000 (20:24 -0400)]
Move to independent repository

Symlink or checkout core into ./core

8 years agopush* scripts: use luasrcdiet if directed
Nathaniel Wesley Filardo [Sun, 30 Jul 2017 01:34:55 +0000 (21:34 -0400)]
push* scripts: use luasrcdiet if directed

If ${LUADIET} is empty, send files as they are; otherwise, stream them
through luasrcdiet.  To use the default options, use 'LUADIET=' '" or
something to that effect.  This can be set per-file, should some module
turn out to be broken by dieting.

The "dopush" utility macro is split and now called "dopushlua" and
"dopushtext" (which skips luasrcdiet even if it is engaged).

8 years agofifosock: dramatically simplify
Nathaniel Wesley Filardo [Sat, 29 Jul 2017 20:09:42 +0000 (16:09 -0400)]
fifosock: dramatically simplify

All we really need here is a thin shim around send; stop trying to be
clever, it just makes things obfucsated when they go wrong.

Chase consequences around the tree.  Extensive testing was done looking
for memory leaks despite the newfound simplicity, with none found.

8 years agotq bugfixes (and API change)
Nathaniel Wesley Filardo [Sat, 29 Jul 2017 19:32:45 +0000 (15:32 -0400)]
tq bugfixes (and API change)

- not all lapsed time should be credited to the head node
- needs to reset the time base (_tst) in all cases
- always return the object for cancellation
- defend against time going backwards (just in case)

While here, rework to simplify, simplify API, and add comments

8 years agoMerge branch 'master' of https://github.com/AcmeTensorToys/esp-lua
Rachael [Sat, 8 Jul 2017 23:52:11 +0000 (16:52 -0700)]
Merge branch 'master' of https://github.com/AcmeTensorToys/esp-lua

8 years agoexample/lamp: Small tweaks
Nathaniel Wesley Filardo [Sat, 8 Jul 2017 23:38:14 +0000 (19:38 -0400)]
example/lamp: Small tweaks

Fixes doing lots of framebuffer math in a loop unnecessarily, too!

8 years agoremoves a useless loop that made the dimming code much slower. This also moves the...
Rachael [Sat, 8 Jul 2017 22:44:51 +0000 (15:44 -0700)]
removes a useless loop that made the dimming code much slower.  This also moves the dimming code form the left most button on the front to the back most button on the left side so as to limit accidental triggering.

8 years agoMerge branch 'master' of https://github.com/AcmeTensorToys/esp-lua
Rachael [Sat, 8 Jul 2017 22:25:37 +0000 (15:25 -0700)]
Merge branch 'master' of https://github.com/AcmeTensorToys/esp-lua

9 years agolamp/linux-draw: tmr unregister also stops
Nathaniel Wesley Filardo [Sat, 3 Jun 2017 22:11:21 +0000 (18:11 -0400)]
lamp/linux-draw: tmr unregister also stops

9 years agoremoved some dead code from a failed fix attempt
Rachael [Sun, 14 May 2017 01:12:39 +0000 (18:12 -0700)]
removed some dead code from a failed fix attempt

9 years agofixed a bug wherein it would switch to the last local image before dimming. Now...
Rachael [Sun, 14 May 2017 01:08:38 +0000 (18:08 -0700)]
fixed a bug wherein it would switch to the last local image before dimming.  Now it will instead dim whatever is on the screen, local or remote.

9 years agoadds the un-dimming feature to the dimming feature
Rachael [Sun, 14 May 2017 00:22:56 +0000 (17:22 -0700)]
adds the un-dimming feature to the dimming feature

9 years agoexamples/lamp: fix linux-draw-xpm
Nathaniel Wesley Filardo [Thu, 11 May 2017 10:24:42 +0000 (06:24 -0400)]
examples/lamp: fix linux-draw-xpm

9 years agoexamples/lamp: implement more of tmr better
Nathaniel Wesley Filardo [Thu, 4 May 2017 02:27:35 +0000 (22:27 -0400)]
examples/lamp: implement more of tmr better

draw-flower uses more of the API

9 years agoadds stubs for the new buttons.
Rachael [Mon, 1 May 2017 16:43:49 +0000 (09:43 -0700)]
adds stubs for the new buttons.

9 years agoWes's new and improved dimming function.
Rachael [Mon, 1 May 2017 16:41:35 +0000 (09:41 -0700)]
Wes's new and improved dimming function.

9 years agokinda works, sorta
Rachael [Mon, 1 May 2017 05:19:44 +0000 (22:19 -0700)]
kinda works, sorta

9 years agosimpler dimming function that merely cuts values in half
Rachael [Sun, 30 Apr 2017 22:45:24 +0000 (15:45 -0700)]
simpler dimming function that merely cuts values in half

9 years agotries to implement rgb --> hsl -> rgb, but fails compiling for an index out of range...
Rachael [Sun, 30 Apr 2017 21:32:54 +0000 (14:32 -0700)]
tries to implement rgb --> hsl -> rgb, but fails compiling for an index out of range exception

9 years agoexamples/lamp: new drawing: flower bloom animation
Nathaniel Wesley Filardo [Thu, 27 Apr 2017 01:52:17 +0000 (21:52 -0400)]
examples/lamp: new drawing: flower bloom animation

9 years agoexamples/lamp: fix fallback drawing for linux xpm
Nathaniel Wesley Filardo [Mon, 24 Apr 2017 17:54:56 +0000 (13:54 -0400)]
examples/lamp: fix fallback drawing for linux xpm

9 years agoexamples/lamp/lamp-remote: don't call nil on malfored message
Nathaniel Wesley Filardo [Mon, 30 Jan 2017 20:09:40 +0000 (15:09 -0500)]
examples/lamp/lamp-remote: don't call nil on malfored message

9 years agozshify host push tools
Nathaniel Wesley Filardo [Tue, 17 Jan 2017 06:40:47 +0000 (01:40 -0500)]
zshify host push tools

9 years agolamp/linux-draw: properly emulate timer callbacks
Nathaniel Wesley Filardo [Tue, 17 Jan 2017 06:42:11 +0000 (01:42 -0500)]
lamp/linux-draw: properly emulate timer callbacks

9 years agoremoves the extra pixel from the first frame of nom
Rachael [Sun, 18 Dec 2016 07:00:19 +0000 (23:00 -0800)]
removes the extra pixel from the first frame of nom

9 years agoAdds simple nom-ing animation, now with bugfixes
Rachael [Sun, 18 Dec 2016 06:36:19 +0000 (22:36 -0800)]
Adds simple nom-ing animation, now with bugfixes

9 years agoMerge branch 'master' of https://github.com/AcmeTensorToys/esp-lua
Rachael [Sun, 18 Dec 2016 06:35:28 +0000 (22:35 -0800)]
Merge branch 'master' of https://github.com/AcmeTensorToys/esp-lua

9 years agolamp: snake2: don't pass string to :fill
Nathaniel Wesley Filardo [Sun, 18 Dec 2016 06:34:54 +0000 (01:34 -0500)]
lamp: snake2: don't pass string to :fill

Whoopsies!

9 years agoAdds simple nom-ing animation, now with bugfixes
Rachael [Sun, 18 Dec 2016 06:33:48 +0000 (22:33 -0800)]
Adds simple nom-ing animation, now with bugfixes

9 years agoAdds simple nom-ing animation
Rachael [Sun, 18 Dec 2016 05:43:39 +0000 (21:43 -0800)]
Adds simple nom-ing animation

9 years agolamp: linux wrappers for xpm and morse renderers
Nathaniel Wesley Filardo [Fri, 16 Dec 2016 07:13:27 +0000 (02:13 -0500)]
lamp: linux wrappers for xpm and morse renderers

This uses lua-cqueues to provide an implementation of the lamp renderer
as a kind of shell pipeline tool.  I am sure things could be improved,
but this is a good start and lets me carry a virtual lamp on my desktop
as well as a slightly different piece of kit on my physical desk.

9 years agolamp: revise remote protocol
Nathaniel Wesley Filardo [Fri, 16 Dec 2016 07:12:03 +0000 (02:12 -0500)]
lamp: revise remote protocol

A new, improved lamp-remote.lua.  The protocol herein is backwards
compatible with everything ever automatically generated by earlier
versions, but is not in general compatible with the old scheme.  I
think I like this one better.

9 years agolamp: lua5.0-isms in draw-{candle,staryeyes}
Nathaniel Wesley Filardo [Wed, 7 Dec 2016 07:52:24 +0000 (02:52 -0500)]
lamp: lua5.0-isms in draw-{candle,staryeyes}

In particular, the use of the function-local "arg" is deprecated and
gone entirely in lua5.2. Switch to "ipairs{...}" rather than
"ipairs(arg)" which should work with both nodemcu and host programs.

9 years agolamp: tidy snake2 drawing code
Nathaniel Wesley Filardo [Wed, 7 Dec 2016 07:51:55 +0000 (02:51 -0500)]
lamp: tidy snake2 drawing code

9 years agolamp: touch should not reset its state every load
Nathaniel Wesley Filardo [Sat, 3 Dec 2016 22:07:45 +0000 (17:07 -0500)]
lamp: touch should not reset its state every load

9 years agolamp: draw-happy: blank the framebuffer first
Nathaniel Wesley Filardo [Wed, 23 Nov 2016 00:47:32 +0000 (19:47 -0500)]
lamp: draw-happy: blank the framebuffer first

9 years agoMerge remote-tracking branch 'github/master'
Nathaniel Wesley Filardo [Mon, 21 Nov 2016 21:50:05 +0000 (16:50 -0500)]
Merge remote-tracking branch 'github/master'

9 years agolamp: tweak draw-candle
Nathaniel Wesley Filardo [Mon, 21 Nov 2016 21:47:58 +0000 (16:47 -0500)]
lamp: tweak draw-candle

9 years agolamp: draw-happy
Nathaniel Wesley Filardo [Mon, 21 Nov 2016 21:47:49 +0000 (16:47 -0500)]
lamp: draw-happy

9 years agolamp: allow going back in drawing selection, too
Nathaniel Wesley Filardo [Mon, 21 Nov 2016 21:43:59 +0000 (16:43 -0500)]
lamp: allow going back in drawing selection, too

9 years agolamp: support sequences of drawings
Nathaniel Wesley Filardo [Mon, 21 Nov 2016 21:40:47 +0000 (16:40 -0500)]
lamp: support sequences of drawings

This changes the protocol to necessitate a ';' at the end of each
animation.  The directives are "[delay] [drawing] [r] [g] [b] ;", with
delay decimal milliseconds to wait after the previous command, r/g/b hex
0-FF and drawing as before.  e.g. '0 fill 0 3 0 ; 5000 heart 7 0 7 ;'.

9 years agolamp: GPIO in README, tidy drawings, add 'candle'
Nathaniel Wesley Filardo [Tue, 8 Nov 2016 14:57:16 +0000 (09:57 -0500)]
lamp: GPIO in README, tidy drawings, add 'candle'

9 years agoMerge branch 'master' of git+ssh://arda.dyndns.tv:2222/Users/Shared/Acme Tensor/esp-lua
Nathaniel Wesley Filardo [Thu, 17 Nov 2016 07:04:51 +0000 (02:04 -0500)]
Merge branch 'master' of git+ssh://arda.dyndns.tv:2222/Users/Shared/Acme Tensor/esp-lua

9 years agoAdds stary eyes animation. Not entirely happy with it
Rachael [Thu, 17 Nov 2016 06:15:34 +0000 (22:15 -0800)]
Adds stary eyes animation.  Not entirely happy with it

9 years agolamp: GPIO in README, tidy drawings, add 'candle'
Nathaniel Wesley Filardo [Tue, 8 Nov 2016 14:57:16 +0000 (09:57 -0500)]
lamp: GPIO in README, tidy drawings, add 'candle'

9 years agoAdds flapping butterfly animation
Rachael [Tue, 8 Nov 2016 06:24:41 +0000 (22:24 -0800)]
Adds flapping butterfly animation

9 years agochanges the shifty2 filename to one that is more compatible with how the system looks...
Rachael [Sun, 30 Oct 2016 19:10:28 +0000 (12:10 -0700)]
changes the shifty2 filename to one that is more compatible with how the system looks for patterns

9 years agomaybe improved slithering algorithm if the snake is supposed to be going forward...
Rachael [Sat, 22 Oct 2016 03:14:44 +0000 (20:14 -0700)]
maybe improved slithering algorithm if the snake is supposed to be going forward the entire time.

9 years agolamp: snake2, a little more animated :)
Nathaniel Wesley Filardo [Sat, 22 Oct 2016 02:40:10 +0000 (22:40 -0400)]
lamp: snake2, a little more animated :)

9 years agoexamples/lamp: add draw: animated heartbeat
Nathaniel Wesley Filardo [Sun, 16 Oct 2016 20:33:47 +0000 (16:33 -0400)]
examples/lamp: add draw: animated heartbeat

9 years agodevilish slightly better
Rachael [Sun, 16 Oct 2016 16:41:54 +0000 (09:41 -0700)]
devilish slightly better

9 years agoresolving merge conflicts. I didn't intentionally change anything in the README file...
Rachael [Sun, 16 Oct 2016 16:37:31 +0000 (09:37 -0700)]
resolving merge conflicts. I didn't intentionally change anything in the README file...

9 years agoinitial devilish commit
Rachael [Sun, 16 Oct 2016 16:27:17 +0000 (09:27 -0700)]
initial devilish commit

9 years agolamp/example: tweak touch UI, improve dox
Nathaniel Wesley Filardo [Sun, 16 Oct 2016 16:21:10 +0000 (12:21 -0400)]
lamp/example: tweak touch UI, improve dox

9 years agoexamples/lamp: stop using a timer for touch
Nathaniel Wesley Filardo [Sun, 16 Oct 2016 15:13:19 +0000 (11:13 -0400)]
examples/lamp: stop using a timer for touch

9 years agoexamples/lamp: refactor drawing, docs
Nathaniel Wesley Filardo [Sun, 16 Oct 2016 00:05:25 +0000 (20:05 -0400)]
examples/lamp: refactor drawing, docs

Break drawings out to their own files, chase changes around the tree.

While here, dramatically improve documentation of the project.  That was
a low bar to pass. ;)

This is an ammeded commit with bug fixes thanks to the lovely and
talented Purple.

9 years agoupdates to one file per pattern and fixes a couple bugs
Rachael [Sun, 16 Oct 2016 06:49:32 +0000 (23:49 -0700)]
updates to one file per pattern and fixes a couple bugs

9 years agomaking the new designs have their own files
Rachael [Sun, 16 Oct 2016 02:09:45 +0000 (19:09 -0700)]
making the new designs have their own files

9 years agomerging in drawing changes
Rachael [Sun, 16 Oct 2016 02:03:07 +0000 (19:03 -0700)]
merging in drawing changes

9 years agoexamples/lamp: refactor drawing, docs
Nathaniel Wesley Filardo [Sun, 16 Oct 2016 00:05:25 +0000 (20:05 -0400)]
examples/lamp: refactor drawing, docs

Break drawings out to their own files, chase changes around the tree.

While here, dramatically improve documentation of the project.  That was
a low bar to pass. ;)

9 years agoplays with shifty eyes v2 and kiss
Rachael [Sat, 15 Oct 2016 20:59:02 +0000 (13:59 -0700)]
plays with shifty eyes v2 and kiss

9 years agoshifty eyes v2
Rachael [Sat, 15 Oct 2016 20:39:31 +0000 (13:39 -0700)]
shifty eyes v2

9 years agoshifty eyes
Rachael [Sat, 15 Oct 2016 19:41:01 +0000 (12:41 -0700)]
shifty eyes

9 years agofixes a couple typos that crashed the device. kiss has too big of a nose
Rachael [Sat, 15 Oct 2016 19:18:17 +0000 (12:18 -0700)]
fixes a couple typos that crashed the device. kiss has too big of a nose

9 years agoattempt at kiss, locks up. OOs
Rachael [Sat, 15 Oct 2016 18:15:13 +0000 (11:15 -0700)]
attempt at kiss, locks up.  OOs

9 years agoexamples/lamp : "animated" "snake" graphic
Nathaniel Wesley Filardo [Sat, 15 Oct 2016 04:05:21 +0000 (00:05 -0400)]
examples/lamp : "animated" "snake" graphic

9 years agoAdd examples/lamp/README.rst
Nathaniel Wesley Filardo [Fri, 14 Oct 2016 01:08:21 +0000 (21:08 -0400)]
Add examples/lamp/README.rst

9 years agomqtt_revert should not be local
Nathaniel Wesley Filardo [Thu, 13 Oct 2016 23:38:30 +0000 (19:38 -0400)]
mqtt_revert should not be local

No functional change as the -remote module already ends up making this
global.  Still, for documentation...