Lua for PIC32 Processors.
A newly created Git playground.
For binary releases see www.askrprojects.net/software/pic32lua/index.html
2015/05: Also notice the new PIC32LuaMZ playground here.
- NEW: port "names" ("pic.port.A", "pic.port.B", ...)
- NEW: PortLatch(<port>, <state>)
- FIX: some cleanups in asIO.c (stdio, stderr, io.write, ...)
- NEW: binary number representation with, e.g.: '0b001110'
- NEW: timer tick-time variable (100ns, by default) in "pic.TIMERTICK"
- NEW: simple delay function in msec and usec; TimerDelay(<usec>, [<uflag>])
- SD-CARD FUNCTIONS:
- NEW: check card insertion: CardDetect()
- NEW: mount card: CardMount()
- NEW: find first file/dir: FindFirst(<name>, <type>)
- NEW: find next file/dir: FindNext()
- NEW: almost complete (but yet not fully tested) IOLIB sd-card integration;
reading, writing, seeking, ..., can all be done through Lua's iolib
- NEW: interface to IOLIB's console interface. E.g.: io.write, io.read, ...
- NEW: configuration bits now in code (by popular demand ;-)
- FIX: PortDir() now returns the correct values (~TRISx)
- AD CONVERTER:
- NEW: select analog input pins; ADPins(<state>)
- NEW: select multiplexer input pins; ADMux(<muxa_pos>,<muxb_pos>,<muxa_neg>,<muxb_neg>)
- NEW: select Vref; ADRef(<vrefcfg>)
- NEW: start conversion and read result; <adval>=ADRead()
- NEW: limited support for "dofile()" and "loadfile()" (no real error checks)
- FIX: wrong buffer index in asUART1.c (UART1_RXBUFSIZE replaces RXBUFSIZE)
- FIX: stupid buffer overrun error in asUART1.c and asCON.c
- FIX: support for C32 v2.01
- CHG: CardMount() does not check for card insertion anymore
- CHG: minor code cleanups (replaced default 'stderr' output by 'stdin', ...)
- NEW: support for chipKIT-Max32
- NEW: console and serial port UARTs can now be swapped
- FIX: minor cleanups (still a LOT to do ;-)
- NEW: SD-card boot file support; boots function "BOOT32()" in file "BOOT32.LUA"
- NEW: added SPI pin documentation
- FIX: corrected pins for SPI1
SD-card now works on both SPI interfaces
- FIX: 64-bit timer bug (lock-up after 430s)
Have fun
FMMT666(ASkr)