Commit graph

87 commits

Author SHA1 Message Date
brentru
28a34db311 update update() logic 2019-06-26 12:25:39 -04:00
brentru
979199710e update cursorcontrol_btns_txt to dynamically resize btns/ui elements for pygamer's smaller display 2019-06-25 13:47:40 -04:00
brentru
6aafca1bf4 add joystick handling for the pygamer 2019-06-25 13:46:28 -04:00
brentru
2724b957cd cursormanager has no knowledge of buttons, add property to return if update() yielded a click. both examples use cursormanager. negative speed can not be set. 2019-06-25 11:08:39 -04:00
brentru
20225e7e9d drop adafruit_ from file name, already in an adafruit_ folder 2019-06-21 18:22:02 -04:00
brentru
11af20e67d fix import statement order 2019-06-21 18:20:30 -04:00
brentru
a671d9f879 fix travis script 2019-06-21 18:16:24 -04:00
brentru
b81edf138e fix init 2019-06-21 18:06:46 -04:00
brentru
b4f7c81645 fixup docs 2019-06-21 18:05:03 -04:00
brentru
90c702ac50 add empty __init__.py file 2019-06-21 18:03:25 -04:00
brentru
9b4ca436a6 pylinted! 2019-06-21 18:01:04 -04:00
brentru
1bb7041f27 unify the init code for pybadge OR pygamer 2019-06-21 12:48:50 -04:00
brentru
6bdcb60a60 adding a high-level cursor control management class 2019-06-21 12:07:59 -04:00
brentru
f35ef16a8c add methods for ContextManager, cursor deinitialization and check 2019-06-21 11:08:53 -04:00
brentru
eb0cc44e32 fix wrong import order 2019-06-20 18:00:08 -04:00
brentru
9032419da4 fixing requirements.txt 2019-06-20 17:54:51 -04:00
brentru
75486f5cca pylint and sphinx pass 2019-06-20 17:50:50 -04:00
brentru
ba90767cc9 add code with correct header 2019-06-20 17:46:08 -04:00
brentru
08fce52fb4 fresh cookiecutter 2019-06-20 17:43:24 -04:00
brentru
3b50809c43 update readme, update library, sphinx builds 2019-06-20 16:13:42 -04:00
brentru
034026e985 remove dispio dep, display object is passed in, add code example 2019-06-20 15:42:57 -04:00
brentru
753946404b add advanced cursor+btns+txt demo example 2019-06-20 15:19:57 -04:00
brentru
cfb1c6f1eb add simpletest, remove buttontest 2019-06-20 15:15:59 -04:00
brentru
ad31b572ce pylint! 2019-06-20 14:46:13 -04:00
brentru
41fc40457a add dynamic boundingbox from display, remove loading a cursor bitmap 2019-06-20 12:47:25 -04:00
brentru
62518facba only scale if positive, bump cursor default speed, update example 2019-06-19 17:56:32 -04:00
brentru
64a228953a refactor is_hidden into hide as a setter/getter 2019-06-18 18:17:08 -04:00
brentru
06cf33620f autogenerate a cursor using bitmaps, make load_cursor_bitmap an optional, user-defined method, add a property for setting the group's scale, add a getter for scale 2019-06-18 17:49:21 -04:00
brentru
5f261097eb pylinting 2019-06-18 14:07:42 -04:00
brentru
b41213f233 dont move the cursor on x/y grid if its property is set to hidden 2019-06-18 13:58:09 -04:00
brentru
9b600ea393 append the group instead of inserting it at a fixed location, could cause layer issues 2019-06-18 13:54:20 -04:00
brentru
c55efc8c08 add hide/show cursor methods, ishidden property 2019-06-18 12:40:23 -04:00
brentru
08126f4b92 sub-group cursor group within the code's primary group 2019-06-18 11:57:57 -04:00
brentru
0143154a6f cursor has a lot of related display data, pass in as a dictionaryso someone could define different properties dynamcially 2019-06-18 11:22:50 -04:00
brentru
69632781e5 allow for dynamic scaling of the cursor bitmap using Group 2019-06-18 11:12:40 -04:00
brentru
3e063e1ec0 initial working library commit. BMP cursor, boundingbox, movement, speed tested 2019-06-18 10:54:59 -04:00
brentrubell
8eda7d2430
Initial commit 2019-06-18 10:48:04 -04:00