Class Arduino

Direct Known Subclasses:
ChatVBBUNO

public abstract class Arduino extends VBBMicro
The base Arduino functions.
  • Field Details

  • Constructor Details

    • Arduino

      public Arduino()
  • Method Details

    • map

      public int map(int value, int fromLow, int fromHigh, int toLow, int toHigh)
    • constrain

      public int constrain(int x, int a, int b)
    • min

      public int min(int a, int b)
    • min

      public long min(long a, long b)
    • isAlpha

      public boolean isAlpha(int c)
    • isDigit

      public boolean isDigit(int c)
    • isAlphaNumeric

      public boolean isAlphaNumeric(int c)
    • isWhitespace

      public boolean isWhitespace(int c)
    • isSpace

      public boolean isSpace(int c)
      Checks for white-space characters including space, formfeed ('\f'), newline ('\n'), carriage return ('\r'), horizontal tab ('\t'), and vertical tab ('\v').
    • isLowerCase

      public boolean isLowerCase(int c)
    • isUpperCase

      public boolean isUpperCase(int c)
    • toLowerCase

      public int toLowerCase(int c)
    • toUpperCase

      public int toUpperCase(int c)
    • isHexadecimalDigit

      public boolean isHexadecimalDigit(int c)
    • isAscii

      public boolean isAscii(int c)
    • isPunct

      public boolean isPunct(int c)
    • isPrintable

      public boolean isPrintable(int c)
    • isControl

      public boolean isControl(int c)
    • isGraph

      public boolean isGraph(int c)
    • setCharAt

      public String setCharAt(String str, int pos, char c)
      setCharAt is a String helper function to support the Arduino getCharAt operator. In java strings are immutable - to change a character you need to make a new string.
      Parameters:
      str -
      pos -
      c -
      Returns:
    • String

      public String String(String str)
    • toInt

      public int toInt(String value)
    • toLong

      public long toLong(String value)
    • toString

      public String toString(int value)
    • toString

      public String toString(long value)
    • String

      public String String()
    • String

      public String String(char v)
    • String

      public String String(long v)
    • String

      public String String(int val, int format)
    • String

      public String String(long val, int format)
    • binary

      public String binary(int val, int places)
    • binary

      public String binary(int val)
    • binary

      public String binary(long val, int places)
    • binary

      public String binary(long val)
    • pulseIn

      public long pulseIn(int pin, int pulse)
      Reads a pulse (either HIGH or LOW) on a pin. For example, if value of pulse is HIGH, pulseIn() waits for the pin to go HIGH, starts timing, then waits for the pin to go LOW and stops timing.
      Parameters:
      pin - The pin to measure the pulse
      pulse - Type of pulse, HIGH or LOW to read.
      Returns:
      The length of the pulse in microseconds.
    • shiftOut

      public void shiftOut(int pinDAT, int pinCLK, boolean msb, int data)
      Shifts out a byte of data one bit at a time. Starts from either the most (i.e. the leftmost) or least (rightmost) significant bit. Each bit is written in turn to a data pin, after which a clock pin is pulsed (taken high, then low) to indicate that the bit is available.
      Parameters:
      pinDAT - The pin onto which to shift the data
      pinCLK - The pin to toggle low to high to shift the data
      msb - If true outputs msb and shifts left, else outputs lsb and shifts right
      data - The data byte to serialise on the shift pulses
    • tone

      public void tone(int pin, int frequency)
    • tone

      public void tone(int pin, int frequency, long durationMillis)
    • noTone

      public void noTone(int pin)
    • noTone

      public void noTone()
    • random

      public int random(int min, int max)
    • random

      public int random(int max)
    • random

      public long random(long min, long max)
    • random

      public long random(long max)
    • abs

      public long abs(long a)
    • max

      public int max(int a, int b)
    • max

      public long max(long a, long b)
    • exp

      public double exp(double exponent)
    • exp

      public float exp(float exponent)
    • log

      public double log(double exponent)
    • log

      public float log(float exponent)
    • pow

      public double pow(double base_Renamed, double exponent)
    • pow

      public float pow(float base_Renamed, float exponent)
    • sqrt

      public double sqrt(double x)
    • sqrt

      public float sqrt(float x)
    • sqrt

      public float sqrt(long x)
    • sqrt

      public float sqrt(int x)
    • sin

      public float sin(float x)
    • sin

      public double sin(double x)
    • cos

      public float cos(float x)
    • cos

      public double cos(double x)
    • tan

      public float tan(float x)
    • tan

      public double tan(double x)
    • atan

      public float atan(float x)
    • atan

      public double atan(double x)
    • atan2

      public float atan2(float y, float x)
    • atan2

      public double atan2(double y, double x)
    • lowByte

      public byte lowByte(int x)
      Bitwise
    • lowByte

      public byte lowByte(long x)
    • highByte

      public byte highByte(int x)
    • highByte

      public byte highByte(long x)
    • bitRead

      public int bitRead(int a, int bit)
    • bitRead

      public int bitRead(long a, int bit)
    • abs

      public int abs(int a)
    • bitSet

      public int bitSet(int x, int bit)
    • bitSet

      public int bitSet(long x, int bit)
    • bitClear

      public int bitClear(int x, int bit)
    • bitClear

      public int bitClear(long x, int bit)
    • bit

      public int bit(int x, int bit)
    • bit

      public int bit(long x, int bit)
    • analogWriteFrequency

      public void analogWriteFrequency(int pin, int frequency)