|
11 ani în urmă | |
---|---|---|
.. | ||
gen | 11 ani în urmă | |
libs | 11 ani în urmă | |
src | 11 ani în urmă | |
targets | 11 ani în urmă | |
CONTRIBUTING.md | 11 ani în urmă | |
ChangeLog | 11 ani în urmă | |
LICENSE | 11 ani în urmă | |
Makefile | 11 ani în urmă | |
README.md | 11 ani în urmă | |
README_cn.md | 11 ani în urmă | |
SConscript | 11 ani în urmă | |
dist_licences.txt | 11 ani în urmă | |
dist_readme.txt | 11 ani în urmă |
| |_ ___ ___ _ ||___ ___ | |_ -| . | _| | | | | . | ||| || |_|||_|_|
http://www.espruino.com|_|
NOTE: This software is beta and is provided as-is, and won't be considered even remotely final until we've released the Espruino Board. As such, don't expect support, and do expect it to change rapidly and without warning. Build your own documentation (see Building), as the API may be different from the one described on the Espruino website.
The KickStarter campaign said the Espruino Board will have some things which this repository does not yet have (like working CC3000 support). These are works in progress and should be done by the time you get your board (or will be available as a software update).
About
It'd probably help to read the FAQ, and specifically the page about Performance as it contains information about how Espruino itself works.
There's also the auto-generated Reference for JavaScript commands as well as the Tutorials on the website. However please note that this repository is under heavy development, and the documentation on the Espruino website will match the version available for download but not the latest version from Git.
License
Please see the LICENSE file
Found a Bug?
Please check that:
Please submit bugs with clear steps to reproduce them (and ideally a test case for the tests
directory), and if at all possible try and include a patch to fix them. Please be aware that we have a whole bunch of outstanding issues (some quite large), so if you report something (especially if it doesn't contain a test or a pull request) it may not be fixed for quite some time.
Please see CONTRIBUTING.md
You can download binaries from http://www.espruino.com/Download (these aren't the latest, but are more likely to work with your board)
Please note that this is BETA. We've been working hard on the Espruino Board support but we haven't had time to check the other boards properly.
If you're using Espruino for your own personal projects - go ahead, we hope you have fun - and please let us know what you do with it on http://www.espruino.com/Forum!
However if you're planning on selling the Espruino software on your own board, please talk to us:
Espruino is easy to build under Linux, and it is possible to build under MacOS. We'd strongly suggest that you DO NOT TRY AND BUILD UNDER WINDOWS, and instead use a Virtual Machine. There's a good post on this here: http://forum.espruino.com/conversations/151
We suggest that you use the CodeSourcery GCC compiler, but paths in Makefile may need changing...
* See the top of Makefile for board names
* Without `RELEASE=1`, assertions are kept in the code (which is good for debugging, bad for performance + code size)
* `BOARDNAME=1 RELEASE=1 make serialflash` will flash to /dev/ttyUSB0 using the STM32 serial bootloader (what's needed for Espruino + HY boards)
* `BOARDNAME=1 RELEASE=1 make flash` will flash using st-flash if discovery, or maple bootloader if using that board
You can build documentation by running:
python scripts/build_docs.py ```
This will create a file called functions.html
ChangeLog
: What's newTODO
: List of things to doboards/
: Information on boards, used to auto-generate a lot of the codecode/
: Example JavaScript codegen/
: Auto-Generated Source Fileslibs/
: Optional libraries to include in Espruino (Math, Filesystem, Graphics, etc)linker/
: Linker files for various processorsmisc/
: random other stuffscripts/
: Scripts for generating files in gen, and for analysing code/compilation/etcsrc/
: Main source codetargetlibs/
: Libraries for targeted architecturestargets/
: Specific code for targeted architecturestests/
: JavaScript Testcasesbenchmark/
: JavaScript Benchmarksdist_*
: files to be copied into distribution zip fileCurrently there are a bunch of different files to modify. Eventually the plan is to fit everything into boards/BOARDNAME.py and to auto-generate the rest of the config files.
Makefile
Makefile
linker/
boards/*.py
files handle loading the list of available pins so the relevant headers + docs can be createdtargets/stm32
, targets/linux
, etc.targetlibs/foo
src/jshardware.h
is effectively a simple abstraction layer for SPI/I2C/etctargets/stm32/jshardware.c
also has flash-size-specific defineslibs/fat_sd
and libs/lcd
still have some device-specific defines in toojswrap_mylib.c/h
in libs/
scripts/common.py
)targets/arduino/utility
is symlinked to src
...arduino_workspace/libraries/Espruino
to targets/arduino
cd targetlibs
mkdir raspberrypi
cd raspberrypi
git clone git://github.com/raspberrypi/tools.git
sudo apt-get install ia32-libs
~/workspace/carambola
CARAMBOLA=1 make