Git Product home page Git Product logo

kaluma's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kaluma's Issues

Add more REPL commands

  • .clear -- clear js context
  • .help -- show all available REPL commands
  • .mem -- show memory status
  • .gc -- Enforce garbage collection

Implement 'i2c' module

  • i2c_write, i2c_read functions should be defined separately for master and slave.
  • In i2c.c, mode is global variable. This mode should be shared among multiple I2C bus(es)?

Support interrupt functions

API for interrupt

Interrupt functions: (before implement, thinking about theses are really needed)

  • attachInterrupt(pin, callback, event)
    • pin
    • callback
    • event : RISING, FALLING, CHANGE, LOW, HIGH
  • detachInterrupt(pin)
  • disableInterrupts()
  • enableInterrupts()

Constants for event should be re-organized.

  • LOW_LEVEL = 0 (bit 0)
  • HIGH_LEVEL = 2 (bit 1)
  • RISING = 4 (bit 2)
  • FALLING = 8 (bit 3)
  • CHANGE = RISING | FALLING = 12 (bit 2 and 3)

GPIO

GPIO class should have more functions

  • gpio.irq(callback, event)

References

MicroPython ref: https://docs.micropython.org/en/latest/library/machine.Pin.html#machine.Pin.irq

Add a way to break running VM

A way needed to stop the following code.

while (true) {};

Solution:

  • Ctrl+C key in REPL. (key should be processed in interrupt).

Pretty printing like in Node.js

Enhance toString() for Array, Object, Function, etc. like in Node.js
For examples)

>"asdfasdf"
'asdfasdf'

>[1, 2, 3]
[1, 2, 3]

>{ a:1, b:2}
{ a: 1, b: 2 }

>[1, 2, "test", function () {}]
[1, 2, 'test', [Function]]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.