Commit Graph

42 Commits

Author SHA1 Message Date
Scott Allen
4bbfea3cf2 Simplify slider widget drawFace() function.
Use just one loop to draw all minor ticks.
Use a second loop to extend lines for major ticks.
Use totalTicks variable to determine number of ticks to draw.
2014-08-10 15:37:48 -04:00
Scott Allen
cc1d78384a Changed vertical slider direction.
Low values at the bottom. High values at the top.
2014-08-04 19:20:18 -04:00
Scott Allen
77928f1b74 Fixed compiler warning in MicroViewSlider.
In drawFace, majorLine could be left uninitialised if style was invalid
(although this couldn't happen with the current code).
Also cleaned up the WIDGETSTYLE tests.
2014-08-04 17:54:10 -04:00
JP
94fc7e6437 moved reDraw() to parent 2014-08-04 11:00:08 +10:00
JP
7c3ec25d70 added reDraw() 2014-08-04 10:36:33 +10:00
JP
dce58d7069 added reDraw() for MicroViewWidget class 2014-08-04 10:22:47 +10:00
JP
21fa22bec2 Merge branch 'vertical-slider' of https://github.com/czetie/MicroView-Arduino-Library into czetie-vertical-slider 2014-08-03 16:02:51 +10:00
Scott Allen
9c5568418a Improve speed of display() and clear() functions
by using horizontal addressing mode.
2014-08-01 14:10:11 -04:00
Scott Allen
a32fd2c499 Added uView.end() to power off the display.
In uView.begin() don't send commands that default to desired values.
2014-08-01 14:09:58 -04:00
Scott Allen
499594d9de Help further reduce overdriving display inputs
(and fixed a few spelling errors in comments)
- Use fast pin change macros for RESET, SS and DC.
- Implement MVSPI.packetBegin() and MVSPI.packetEnd() to allow sending
  multiple byte "packets" while SS remains enabled.
- Add 2 and 3 byte command() functions to send multiple command bytes in
  one packet.
- Modify clear() and display() functions to send commands and data in
  packets.
- Do the "wait for SPI transfer complete" just before sending the next
  byte (plus after the last or only byte) in a packet, so code can be
  executed while bytes are being sent.
- Disable SPI mode when not transmitting, so MOSI (and SCK) will go low.
- Keep DC low except when sending data bytes.
- Change MVSPI.transfer() to void since nothing can be received from
  the display.
2014-07-30 19:28:39 -04:00
Scott Allen
fa09bdd7aa Eliminate compiler warnings
- Fixed use of = instead of == in "if" statment.
- Fixed uninitialised count variable in "for" loop.
- Removed unused variables.
- Replaced line splice characters (backslash) at end of comments.
2014-07-29 21:27:10 -04:00
Carl Zetie
b5462c5bcb Many bugs fixed
OK, this version is actually worth looking at. Previous had more bugs
than you could shake a stick at.

vert_slider_test.ino illustrates the two slider styles, vertical
versions of the two existing styles
2014-07-14 18:39:13 -04:00
Carl Zetie
7b66741f79 Fixed my typo in MicroView.cpp
Fixed my typo in MicroView.cpp
2014-07-14 07:48:20 -04:00
Carl Zetie
c1e8756c4e Added Vertical Slider styles to Slider widget
Added WIDGETSTYLE2 (like 0, but vertical) and WIDGETSTYLE3 (like 1, but
vertical). NOTE: I don't have a build environment, so I can't even
promise this will compile! So if it's crap, just treat it as a concept
for an enhancement request!
2014-07-13 14:42:34 -04:00
JP Liew
ff388744a6 added more documentation 2014-06-26 21:20:49 +10:00
JP Liew
a7e091c2f9 added comments to support doxygen 2014-06-26 14:38:16 +10:00
JP
90f8e8d606 added Rotating Cube example by Jim Lindblom 2014-06-12 11:17:32 +10:00
JP
73cf96e723 added SparkFun logo 2014-06-09 11:20:56 +10:00
JP
8ebf545e08 added simple tutorials, modified RESET pin 2014-06-09 11:01:47 +10:00
JP
8db48a9538 added GPL V3 License 2014-04-30 10:42:12 +10:00
JP
9ee0b95cf8 changed SS,RESET,DC to use weak pull-up 2014-04-22 22:32:08 +10:00
JP
fb8b9c4a43 added debug messages for doCmd() 2014-04-17 15:49:39 +10:00
JP
e6045dcfa1 added flipVertical and horizontal 2014-02-25 11:58:56 +11:00
JP
93beac25d5 added checkComm() function to communicate with host PC 2014-02-15 10:15:03 +11:00
JP
7fd29e3c92 added Serial command 2014-02-12 20:50:07 +11:00
JP
eaf0862bb5 added invert function, contrast function, changed scrollStop to scrollStop for consistency 2014-02-11 19:43:01 +11:00
JP
ec1c760c7c added round gauge widget 2014-02-08 20:34:28 +11:00
JP
7f15062e58 fixed Slider negative value not working 2014-02-07 14:05:52 +11:00
JP
1fcf3a0839 * changed MICROVIEW class name to MicroView
* created MICROVIEWWIDGET class
* added routines to draw widget
* added slider widget
* merged MicroViewWidget into MicroView
* merged SPI.h into MicroView
2014-02-06 17:39:10 +11:00
JP
cf12168cc9 fixed README.md greater sign 2014-02-03 13:10:32 +11:00
JP
d61474cb61 declared permanent uView variable 2014-02-03 10:17:18 +11:00
JP
28e7db1aa9 added 7 segment font. 2014-02-02 08:40:50 +11:00
JP
84a1f697fc added SPRITE demo. 2014-01-31 21:06:18 +11:00
JP
d1f60ab9e6 fixed font draw XOR mode bug
added analog clock demo
2014-01-30 14:23:57 +11:00
JP
4bf55ff5a7 added other fonts support 2014-01-30 11:24:23 +11:00
JP
2fab8fe34a font plotting anywhere 2014-01-16 20:29:42 +11:00
JP
c9b1aa3128 added multiple fonts support 2014-01-16 17:13:02 +11:00
JP
e5989baf36 added multiple fonts support 2014-01-15 15:55:39 +11:00
JP
1ab7195db9 added draw char 2014-01-15 11:40:02 +11:00
JP
b5bba50028 added more functions 2014-01-13 21:35:22 +11:00
JP
41ffc5e28e added pixel line clear 2014-01-13 18:02:21 +11:00
JP
89ca5987aa first commit 2014-01-12 21:00:51 +11:00