Skip to content

hewenhao2008/JN516x-arduino-package

 
 

Repository files navigation

About

This is Arduino add-on package for NXP JN516x platform. This version is built on Contiki.

Install

Install JN516x plugin to Arduino

For Arduino 1.6.7 or newer versions.

Use this additional package definition of 'Additional Boards Manager URLs' option that is on Arduino's preferences.

This package does download external package on first build time.

Install Compiler and SDK.

Download and install compiler, sdk and flash programmer from NXP's JN516x page.

For Windows

Install to installer's default destination (C:\NXP).

API implements status

Already implemented

Digital I/O

  • pinMode()
  • digitalWrite()
  • digitalRead()

Analog I/O

  • analogReference()
  • analogRead()
  • analogWrite()

Advanced I/O

  • shiftOut()
  • shiftIn()

Time

  • millis()
  • micros()
  • delay()

Math

  • min()
  • max()
  • abs()
  • constrain()
  • map()
  • pow()
  • sqrt()

Trigonometry

  • sin()
  • cos()
  • tan()

Random Numbers

  • randomSeed()
  • random()

Bits and Bytes

  • lowByte()
  • highByte()
  • bitRead()
  • bitWrite()
  • bitSet()
  • bitClear()
  • bit()

Interrupts

  • interrupts()
  • noInterrupts()

External Interrupts

  • attachInterrupt()
  • detachInterrupt()

Communication

  • Serial
  • Stream

Not implemented yet.

Time

  • delayMicroseconds()

Advanced I/O

  • tone() This function will follow the implementation status of Arduino Due.
  • noTone() This function will follow the implementation status of Arduino Due.
  • pulseIn() System dependent constants are not tuned.

Limitation by Hardware difference

Not support function.

  • analogReadResolution()
  • analogWriteResolution()
  • Keyboard
  • Mouse

Interrupt mode

JN516x does not support LEVEL triggerd and both edge triggerd interruption, support only RISING and FALLING. attatchInterrupt() treat HIGH, LOW, CHANGE as RISING.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 60.5%
  • C 33.7%
  • Other 3.7%
  • Processing 2.1%