hackathon-dev #1

Merged
amy merged 101 commits from hackathon-dev into develop 2019-12-12 13:56:11 -07:00

101 Commits

Author SHA1 Message Date
Amy Bowersox
cd453f0839 and give VMW/CB a grateful acknowledgement in the README 2019-12-12 09:37:31 -07:00
Amy Bowersox
a737850416 And, since we have to include a license, we should include the official
Erbosoft Project Code of Conduct. :)
2019-12-12 09:33:31 -07:00
Amy Bowersox
d1369964d7 The code has to be GPL'd, because the license of the BCM2835 library requires
it.  Add the license document and the header on all source files.
2019-12-12 09:24:58 -07:00
Amy Bowersox
91c466eae7 typo in makefile 2019-12-11 15:54:21 -07:00
Amy Bowersox
cb9ecc89ca add the undo and clear commands with their icons 2019-12-11 15:52:49 -07:00
Amy Bowersox
4d5b53fcdc cleanup of the script elements 2019-12-11 15:34:12 -07:00
Amy Bowersox
416438f6c8 typo 2019-12-11 15:28:45 -07:00
Amy Bowersox
59ee61200c added the backlight control and some code for doing repaints 2019-12-11 15:27:29 -07:00
Amy Bowersox
2a5a6dbe4e now we're actually saving the objects and drawing them properly 2019-12-11 15:18:33 -07:00
Amy Bowersox
85e89eae4c revised the feedback for freehand 2019-12-11 14:55:34 -07:00
Amy Bowersox
e7f191a9e0 wrong procedure name stored in tool list 2019-12-11 14:53:47 -07:00
Amy Bowersox
b620f55420 adding feedback for each of the tools 2019-12-11 14:52:32 -07:00
Amy Bowersox
35a12760d7 global variable definitions again 2019-12-11 14:45:59 -07:00
Amy Bowersox
90da46505e the basic tool and color selection code 2019-12-11 14:44:35 -07:00
Amy Bowersox
6a4938e4ee finished disco debugging 2019-12-11 14:27:14 -07:00
Amy Bowersox
372f48eab7 assert that everything is present 2019-12-11 14:25:05 -07:00
Amy Bowersox
b5fd4c2879 OK, another null problem needs fixing 2019-12-11 14:23:23 -07:00
Amy Bowersox
9318d27b2b null check before deleting bitmap? 2019-12-11 14:21:27 -07:00
Amy Bowersox
b90c2efe2f dig into the bitmap creation 2019-12-11 14:19:51 -07:00
Amy Bowersox
a8a5206b89 is the problem in Epython_wrap_bitmap? 2019-12-11 14:16:25 -07:00
Amy Bowersox
0dd8d45898 now probing into the Python interface for devctx 2019-12-11 14:14:17 -07:00
Amy Bowersox
c283d06c12 disco debugging the demo script 2019-12-11 14:08:33 -07:00
Amy Bowersox
79088d4893 change spec of arguments to bitmap init 2019-12-11 14:06:26 -07:00
Amy Bowersox
b96527139f forgot brackets 2019-12-11 14:04:24 -07:00
Amy Bowersox
ed9fd9320c added stock bitmap handling and support for it in the demo script 2019-12-11 14:03:11 -07:00
Amy Bowersox
51fda759cc take out the test for size in mkgfx.c to make it more general 2019-12-11 13:23:53 -07:00
Amy Bowersox
1b4cbfae63 try makefile another way 2019-12-11 13:22:39 -07:00
Amy Bowersox
62204682af adding the four "tool" icons to bind into the executable (this works for now) 2019-12-11 13:20:45 -07:00
Amy Bowersox
2526184dfe rename mksplash to mkgfx because it's really more general than just for
splash screen graphics
2019-12-11 13:04:00 -07:00
Amy Bowersox
8c82022168 typos 2019-12-11 13:00:38 -07:00
Amy Bowersox
b7e9de7d7e now try rubberbanding lines 2019-12-11 12:59:45 -07:00
Amy Bowersox
2c0a1374d9 guess I need to declare certain things as global 2019-12-11 12:50:10 -07:00
Amy Bowersox
fee3619ee1 first try at rubberband feedback 2019-12-11 12:46:26 -07:00
Amy Bowersox
0dce80f1e3 lengthen the click time 2019-12-11 12:33:18 -07:00
Amy Bowersox
a62364082a try to fix the coordinates returned by touch events 2019-12-11 12:31:32 -07:00
Amy Bowersox
46213020dd separate out the message handlers for clarity 2019-12-11 12:26:05 -07:00
Amy Bowersox
8441949e3d script had a syntax error 2019-12-11 12:21:03 -07:00
Amy Bowersox
1ea7a740fe disco debugging the script 2019-12-11 12:19:48 -07:00
Amy Bowersox
acc7aacf7b fixed another typo 2019-12-11 12:14:55 -07:00
Amy Bowersox
c309e4dc0f now I forgot that text_color is an ATTRIBUTE of a DC 2019-12-11 12:13:35 -07:00
Amy Bowersox
9fbb7be717 I forgot you can't alter the elements of tuples 2019-12-11 12:12:33 -07:00
0d6b6ba8b4 minor fix to sysinput 2019-12-11 12:07:37 -07:00
Amy Bowersox
1088f630a0 added the rgb function to upiwin and started building the demo script 2019-12-11 12:05:53 -07:00
Amy Bowersox
65999084c4 added "click" events for both buttons and touch 2019-12-11 11:32:19 -07:00
Amy Bowersox
7c844e6b69 use -Werror to make all warnings into errors (should have done this already) 2019-12-11 11:13:44 -07:00
Amy Bowersox
899be01f28 should be most of it now 2019-12-11 11:12:15 -07:00
Amy Bowersox
d7439be320 still plugging away at errors 2019-12-11 11:09:40 -07:00
Amy Bowersox
c388dbc1d2 more errors 2019-12-11 11:05:36 -07:00
Amy Bowersox
e59e6e0bae more compile errors 2019-12-11 11:04:09 -07:00
Amy Bowersox
971826e118 more pushing of errors 2019-12-11 10:59:14 -07:00
Amy Bowersox
864360f9fa compile errors in new stuff 2019-12-11 10:57:07 -07:00
Amy Bowersox
4745d51361 fix some compile errors 2019-12-11 10:54:09 -07:00
Amy Bowersox
379bcab885 fixes to some headers that were missing stuff 2019-12-11 10:51:25 -07:00
76269f5189 fix to makefile 2019-12-11 10:50:59 -07:00
Amy Bowersox
ee3df7bffc forgot to add the registration of the Bitmap type 2019-12-11 10:47:45 -07:00
Amy Bowersox
20ed16a9ae sending over all the bitmap and select_object work for compile check 2019-12-11 10:45:45 -07:00
Amy Bowersox
b390886277 work in progress - support for bitmaps and BitBlt 2019-12-10 17:09:16 -07:00
Amy Bowersox
59c8dcc638 a more extensive clipping test 2019-12-10 15:00:51 -07:00
Amy Bowersox
02c8ede681 remove use of tmp some places 2019-12-10 14:56:48 -07:00
Amy Bowersox
d711df60bd try it with 8-bit precision 2019-12-10 14:55:26 -07:00
Amy Bowersox
cfc7519727 a fencepost error 2019-12-10 14:51:53 -07:00
Amy Bowersox
ab16513e3a 8-bit precision may be needed here 2019-12-10 14:48:02 -07:00
Amy Bowersox
eee409d4e7 add an infinite loop detector 2019-12-10 14:45:02 -07:00
Amy Bowersox
2b9853fd4c boundary condition on right, attempting to bypass 2019-12-10 14:41:41 -07:00
Amy Bowersox
f5cab0010e OK, NOW i think I'm on the right track - re-reverse the signs 2019-12-10 14:36:38 -07:00
Amy Bowersox
da9658408a use lesser precision in hope it works 2019-12-10 14:32:24 -07:00
Amy Bowersox
3996501cf0 I don't understand fixed point arithmetic - this fixed that, I hope 2019-12-10 14:30:45 -07:00
Amy Bowersox
d66aa4de24 try with higher-precision variables 2019-12-10 14:13:38 -07:00
Amy Bowersox
406c4fd85d checking math again 2019-12-10 14:08:20 -07:00
Amy Bowersox
962f13dc1a ever closer to a solution 2019-12-10 14:06:23 -07:00
Amy Bowersox
85144de58f look at the unshifted d values 2019-12-10 14:01:36 -07:00
Amy Bowersox
3b7f326768 more tracing 2019-12-10 13:59:27 -07:00
Amy Bowersox
3821988610 I think I reversed a sign somewhere 2019-12-10 13:53:33 -07:00
Amy Bowersox
7ed0dea017 possible that numeric ordering is b0rking it? 2019-12-10 13:49:21 -07:00
Amy Bowersox
48415ab947 again... 2019-12-10 13:43:30 -07:00
Amy Bowersox
ddc005ed8b logging needed work :) 2019-12-10 13:42:40 -07:00
Amy Bowersox
3d40bb2943 now disco debugging the clipping algorithm 2019-12-10 13:40:23 -07:00
Amy Bowersox
a14acdb0ed the clipping looks like it worked, my geometry was just off :) 2019-12-10 13:25:36 -07:00
Amy Bowersox
3dd2e037ff finished debugging parameter error, now test drawing without resetting clip 2019-12-10 13:21:24 -07:00
Amy Bowersox
12bd14e1e7 more disco debugging 2019-12-10 13:17:46 -07:00
Amy Bowersox
9746ad1ab3 disco debugging, yay! 2019-12-10 13:13:56 -07:00
f41356cca4 prepare for disco debugging 2019-12-10 13:10:43 -07:00
Amy Bowersox
eef55f71b3 added a script to test clipping of drawn lines 2019-12-10 13:04:24 -07:00
519e58fd77 fixed compile errors 2019-12-10 12:55:32 -07:00
Amy Bowersox
c3b3e0a350 first pass at the device-independent drawing system, including the Python
representation of a device context
2019-12-10 12:42:58 -07:00
Amy Bowersox
ee292d3aab starting to build device-independent drawing functions (work in progress) 2019-12-09 17:02:04 -07:00
Amy Bowersox
68be55a8f5 tracing backlight problem and fixing a typo in a function definition 2019-12-09 13:42:55 -07:00
Amy Bowersox
bb8b27fb24 forgot the Python import 2019-12-09 13:38:01 -07:00
Amy Bowersox
351e2a2b47 error in Python script now 2019-12-09 13:37:02 -07:00
Amy Bowersox
c0c4242dfc cleared up another warning 2019-12-09 13:34:49 -07:00
Amy Bowersox
6f27ec7af8 cleaned up some compiler warnings 2019-12-09 13:33:23 -07:00
Amy Bowersox
a96a427e49 moved the main message loop entirely into Python 2019-12-09 13:29:37 -07:00
Amy Bowersox
f74e663658 got a test backwards 2019-12-09 12:35:15 -07:00
Amy Bowersox
4c2e9d9e15 added a log message on failure 2019-12-09 12:31:13 -07:00
ccde6c71f9 fixed typo 2019-12-09 12:30:27 -07:00
Amy Bowersox
5ff7bd0858 added constant registration capability 2019-12-09 12:28:28 -07:00
Amy Bowersox
c97b0f7194 fixed build error in rect 2019-12-09 11:24:19 -07:00
Amy Bowersox
4bef88aecc finished restructuring Sys_enable_input 2019-12-09 11:23:06 -07:00
Amy Bowersox
746962454d fixed build error 2019-12-09 11:20:21 -07:00
Amy Bowersox
69a4c42d68 added the rectangle functions and a "wait for input" mechanism to the system
input thread
2019-12-09 11:18:24 -07:00
Amy Bowersox
cc00d7a5ef changed the splash screen and added a test to make sure we run as root 2019-12-09 10:14:20 -07:00