541 Commits

Author SHA1 Message Date
Gordon Williams
8447cf7781 fix parse error reporting 2014-02-14 14:48:39 +00:00
Gordon Williams
5b313a511c removing some compile warnings 2014-02-14 13:31:21 +00:00
Gordon Williams
01f0b91c72 analogWrite now respects pinMode (fix #234)
Add Open Drain support to pinMode (fix #225)
2014-02-14 13:10:04 +00:00
Gordon Williams
4ec13c9fa9 setWatch now reports lastTime - time of last state change #238 2014-02-14 12:45:40 +00:00
Gordon Williams
50cc51a9f7 Guess initial values for average SysTick time - means that getTime is more accurate for the first 1-2 seconds after startup 2014-02-14 10:42:54 +00:00
Gordon Williams
9da681c23c When casting Strings to booleans, so s.length!=0 2014-02-14 09:13:16 +00:00
Gordon Williams
c8f0b9b3dc More accurate values for PI and E
Fix charCodeAt being signed (should be unsigned)
2014-02-14 09:06:53 +00:00
Gordon Williams
4ba152eec8 add randunel's tests 2014-02-14 09:06:14 +00:00
Gordon Williams
a3a46d2f17 Fix parsing of '018' - it's not Octal after all (but 017 is) 2014-02-14 08:56:21 +00:00
Gordon Williams
16f46e7df2 Fixed type equality check between int and float (should treat them as the same) 2014-02-14 08:40:14 +00:00
Gordon Williams
26b9675d71 Add 'Infinity' variable 2014-02-14 08:29:28 +00:00
Gordon Williams
c4653d24ec Fix timestamping when in Deep Sleep 2014-02-13 18:08:46 +00:00
Gordon Williams
f9fe1fcd24 High res timer (now to 1/2^23) using SysTick with RTC as a base (fix #168) 2014-02-13 17:53:09 +00:00
Gordon Williams
bd5c0afc0b working high res timer. still appears to have glitches 2014-02-13 17:42:21 +00:00
Gordon Williams
555a89f1ec small readability tweaks 2014-02-13 15:59:10 +00:00
Gordon Williams
0ba7c60834 Stop FatFS using insane amounts of RAM 2014-02-13 13:58:24 +00:00
Gordon Williams
bbf777cd26 force non-inlining of functions 2014-02-13 13:43:56 +00:00
Gordon Williams
35aad700bc Increase available stack on Espruino Board 2014-02-13 11:46:01 +00:00
Gordon Williams
c04cfccc26 Make sure that interruptions are handled better while drawing to graphics
Make sure that stack overflow errors are handled more tidily (and increase limit for warning)
2014-02-13 11:45:14 +00:00
Gordon Williams
d3ee3d39ca fix warning 2014-02-13 11:21:12 +00:00
Gordon Williams
7893a9b9a5 Graphics setPixel(x,y,undefined) to use foreground colour (fix #215) 2014-02-12 19:16:06 +00:00
Gordon Williams
83c2f8cd09 Added ability to specify a JS function for Graphics fillRect 2014-02-12 19:02:34 +00:00
Gordon Williams
5a146b18ed Graphics arraybuffer/callback now accepts 16bpp 2014-02-12 18:34:56 +00:00
Gordon Williams
4327a585d1 fix newb mistake 2014-02-12 18:22:54 +00:00
Gordon Williams
9cd010cca2 test for a bug which failed previously 2014-02-12 15:33:06 +00:00
Gordon Williams
4730527113 Swap open and close brackets in bitmap font (fix #191) 2014-02-12 15:32:15 +00:00
Gordon Williams
86eb5f375e Stop repeated analogWrite with messing up PWM waveform (fix #56) 2014-02-12 13:48:13 +00:00
Gordon Williams
bb59bbb28e Fix travis build - the compiler isn't correct so the binary size ends up getting too big. We just disable the test 2014-02-12 13:41:20 +00:00
Gordon Williams
702ecf8b05 Implement faster Graphics ArrayBuffer fill (affects vector fonts + clear) 2014-02-12 13:28:03 +00:00
Gordon Williams
82dfeb89d0 Epic refactor to remove JsParse (fix #17) 2014-02-12 12:44:02 +00:00
Gordon Williams
74afde52f3 compile espruino 1v3 2014-02-12 12:28:41 +00:00
Gordon Williams
f96ea660ed Argh. 2014-02-12 12:28:20 +00:00
Gordon Williams
8962102ad4 whoops 2014-02-12 12:15:39 +00:00
Gordon Williams
defff15b56 Finally added Long filename support for FatFS (fix #78) 2014-02-12 12:00:16 +00:00
Gordon Williams
5129654e4a Tweak jsinteractive.c to help reduce code size 2014-02-12 11:58:27 +00:00
Gordon Williams
c86e3d2c0f Upgrade fatfs to R0.10a 2014-02-12 11:05:23 +00:00
Gordon Williams
786d385e89 Merge branch 'master' into new_fatfs 2014-02-12 10:58:06 +00:00
Gordon Williams
36bea7bff8 Remove disk_timerproc in SD card implementation 2014-02-12 10:57:56 +00:00
Gordon Williams
4beddff529 new FatFS library 2014-02-12 10:52:19 +00:00
Gordon Williams
6a2d6405a6 fs.readFile returns 'undefined' if file is not found. Also make readdir return undefined on failure (fix #229) 2014-02-12 10:30:04 +00:00
Gordon Williams
f6a2612348 Fix Linux halting when there is one long timeout but no other activity 2014-02-12 09:57:17 +00:00
Gordon Williams
f446bab107 Now ref thisVar, which stops it being repurposed into a Name for array accesses (fix #233) 2014-02-12 09:53:28 +00:00
Gordon Williams
c8b9d90720 fix random compile issue 2014-02-12 09:13:29 +00:00
Gordon Williams
9cc6d2b221 remove compile warnings 2014-02-12 09:06:13 +00:00
Gordon Williams
09e9d1885c Now use jshardware's SPI for SD filesystems - more multiplatform 2014-02-11 19:15:34 +00:00
Gordon Williams
b67cebf09d ECU compile 2014-02-11 18:25:47 +00:00
Gordon Williams
dc0564c6aa Fix Linux jshSleep so that timeouts are handled at <10ms if required (fixes test056) 2014-02-11 17:40:31 +00:00
Gordon Williams
a84ad6ea1c Make number.toString(base) work for floating point (fix #232) 2014-02-11 17:32:43 +00:00
Gordon Williams
c4cdde77f6 Added Number.toFixed 2014-02-11 17:28:31 +00:00
Gordon Williams
df90a46c9a Ensure USB doesn't mess up other IRQ priorities 2014-02-11 10:56:09 +00:00