Scott Allen
460e768ea9
Refactor nextFrame() and add setFrameDuration()
...
nextFrame() changes were in colaboration with @MrBlinky
setFrameDuration() can be used as an alternative to setFrameRate()
2018-03-11 05:40:44 -04:00
Mr.Blinky
4788b1ab01
Refactor buttonsState()
...
By @MrBlinky
With some source code formatting and cleanup by @MLXXXp (Scott Allen).
2018-03-11 05:39:57 -04:00
Scott Allen
d356be4e13
Refactor and speed up bootLogo functions
2018-03-04 13:51:37 -05:00
Scott Allen
6e1c47cbe0
Refactor idle() to reduce code size
2018-03-04 13:42:17 -05:00
Mr.Blinky
bd726fc112
Refactor and optimise paintScreen() in assembler
...
By @MrBlinky with contributions from @veritazz (Michael Gollnick) and
@MLXXXp (Scott Allen).
2018-03-04 13:31:43 -05:00
Scott Allen
d44b89e01f
Minor source format changes for drawCompressed()
...
No code changes from previous commit.
2018-01-17 13:56:25 -05:00
Pharap
6f6849a5bb
Reduce drawCompressed progmem usage ( #19 )
...
Reduce drawCompressed() progmem usage
2018-01-17 13:51:34 -05:00
Scott Allen
f8f46de06d
Merge pull request #18 from eried/master
...
Fix typo in the code example for everyXFrames()
2017-12-19 09:43:08 -05:00
Erwin Ried
d6336803a2
Small typo on the code example
2017-12-19 15:33:01 +01:00
Scott Allen
93c33f6ad6
Change characters used for Sprites examples
2017-12-10 09:13:11 -05:00
Scott Allen
5e58d9b6a8
Fix minor grammar error in Sprites documentation
2017-12-09 22:48:59 -05:00
Scott Allen
b159b3751b
Add info on sketch EEPROM use to README.md
2017-12-01 16:57:15 -05:00
Scott Allen
6360eb2b37
modify library.json to conform to documentation
...
Put the exclude field under the export object.
2017-10-02 15:46:46 -04:00
Scott Allen
383bdfc144
fix and clarify Sprite assembly comments
2017-08-28 21:31:10 -04:00
Scott Allen
420b958208
Merge branch 'master' of https://github.com/MLXXXp/Arduboy2
2017-08-28 21:13:10 -04:00
Scott Allen
5370409875
fix documentation comments for initRandomSeed()
2017-08-28 21:09:13 -04:00
Scott Allen
6416166ae7
Merge pull request #15 from yyyc514/sprite_register_fix
...
fix random display glitches with sprite rendering
2017-08-28 21:03:51 -04:00
Josh Goebel
4478b1fe0a
fix random display glitches with sprite rendering
...
Sometimes the compiler would assign r28/29 to one of our input
variables despite our needing to use that register ourselves. This
fix attempts to prevent that from happening and also cleans up a
few other small details.
- remove unnecessary y_count (-1 register)
- set buffer_ofs_2 inside assembly (-1 register)
- require inputs/outputs to use lower or simple upper registers
2017-08-26 14:55:02 -04:00
Scott Allen
1bb4726ed0
Change version to 4.1.0
2017-07-31 17:10:21 -04:00
Scott Allen
fe30863dbe
Add complimentary "get" for text "set" functions
...
Added functions getTextColor(), getTextBackground(),
getTextSize() and getTextWrap() to the Arduboy2 class
2017-07-31 16:57:28 -04:00
Scott Allen
6ab6b83e2c
Fix some small errors in documentation comments
2017-07-31 11:56:10 -04:00
Scott Allen
fd614ab586
Change version to 4.0.2
2017-07-07 11:38:02 -04:00
Scott Allen
e6e82bf336
Fix initialisation of Right button for DevKit
2017-07-07 11:30:48 -04:00
Scott Allen
46ecb2dd78
Change version to 4.0.1
2017-06-16 18:44:44 -04:00
Scott Allen
b121d19b77
Refactor fillScreen()
2017-06-16 18:37:19 -04:00
Scott Allen
bd5b470294
Change drawPixel() to avoid Z reg corruption
...
Also use _BV() to specify bit masks in the bitshift_left array,
and other minor formatting changes
2017-06-16 18:05:19 -04:00
Scott Allen
6074f9fc56
Merge pull request #14 from Pharap/master
...
Fix bug in drawPixel asm
2017-06-16 17:59:03 -04:00
Pharap
427c1d53f2
Fix bug in drawPixel asm
2017-06-14 19:31:54 +01:00
Scott Allen
342186281a
Change version to 4.0.0
2017-04-26 10:14:51 -04:00
Scott Allen
3c4915b0d5
Add commented out logo alternatives to begin()
2017-04-26 10:08:07 -04:00
Scott Allen
a01ceffb20
Fix improper masking in Sprites drawPlusMask()
...
As per Josh Goebel @yyyc514
2017-04-25 15:36:42 -04:00
Scott Allen
babf6893c8
Eliminate "may be uninitialized" variable warning
...
Code in Sprites.cpp refactored to eliminate
"warning: 'mask_ofs' may be used uninitialized in this function"
2017-04-25 15:36:42 -04:00
Josh Goebel
b4d8fd8d6f
fix register pressure
...
- declare a high register clobber
This seems to have the side effect of freeing up a high register and
preventing the error:
"can't find a register in class 'LD_REGS' while reloading 'asm'""
2017-04-25 15:36:42 -04:00
Josh Goebel
606c80268b
tmp variables can be flagged as output only
...
- this saves a few bytes
2017-04-25 15:36:42 -04:00
Josh Goebel
5d428a3a33
Fix buffer underflow in drawPlusMask
...
When sRow == -1 drawPlusMask can cause buffer underflow if it's
interrupted by an interrupt that changes memory that it's in the middle
of writing. Of course it shouldn't be writing to this memory at all.
This fixes the issue.
2017-04-25 15:36:42 -04:00
Josh Goebel
520be03d59
any upper register is fine
2017-04-25 15:36:42 -04:00
Josh Goebel
3aa015b997
minor code fixes for sprites
...
- saves several bytes for sketches using drawPlusMask()
2017-04-25 15:36:42 -04:00
Scott Allen
dac16d5e36
Remove inadvertently added space character
2017-04-25 15:36:42 -04:00
Josh Goebel
e235f26def
remove unnecessary carry
2017-04-25 15:36:42 -04:00
Josh Goebel
50df1a221b
make sure row_offset and y do not overlap
2017-04-25 15:36:42 -04:00
Josh Goebel
6f9056f99c
add back original C implimentation
2017-04-25 15:36:42 -04:00
Josh Goebel
554c21f759
make sure we use upper registers
2017-04-25 15:36:42 -04:00
Josh Goebel
e1cce03580
Optimize drawPixel for speed (-20 bytes)
...
- Inlined : 332 -> 358 ops/ms
- Non-inlined : 222 -> 303 ops/ms
Moves most of the pixel offset calculation math into assembly.
Also uses a shift lookup table vs calculting bit shifts on the
CPU (which is slow)
2017-04-25 15:36:42 -04:00
Scott Allen
ab1a7b3bdd
Add delayShort() function
...
Same as Arduino delay() except takes a 16 bit value.
Mainly added to save some code in the library but can be used by
sketches for the same purpose.
Also changed a delay in bootLogoText() to match a previous change in
bootLogo()
2017-04-25 15:36:42 -04:00
Scott Allen
fc61d180d9
Add displayOff() and displayOn() functions
...
displayOff() puts the display in low power mode.
displayOn() re-initializes the display after displayOff() is used.
The SPI initialization code was separated from the display
initialization code to facilitate the new functions.
2017-04-25 15:36:42 -04:00
Scott Allen
9bfb499169
Remove "inline" keywords and attributes
...
Optimization done by the compiler makes these unnecessary.
2017-04-25 15:36:42 -04:00
Scott Allen
96b53875b5
Eliminate mismatched type warning in drawChar()
...
Also changed a loop index from int8_t to uint8_t to match other loops.
2017-04-25 15:36:42 -04:00
Josh Goebel
ae8e284d41
optimize drawChar (-126 bytes)
2017-04-25 15:36:42 -04:00
Scott Allen
6e13fc019f
Remove extra 50ms delay added by de1725
...
by Josh Goebel.
Merge conflict resolved.
2017-04-25 15:36:42 -04:00
Josh Goebel
1280160f89
optimize readUnitName (-6 bytes)
2017-04-25 15:36:42 -04:00