koadrobot/arduino@0.1.4

License: GPL 3.0

Port Nodes. 0.0.1 [03.02.2019 ] : port enums for UNO (analogs/ digitals/ digitals-pwm), read - (analog/ digital), write - (analog/ analog-pwm/ digital/ digital-bits/ digital-portb/ digital-portd/ digital-ports), isdigitalport/ isanalogport/ isdigitalpwmport. 0.0.2 [04.02.2019 ] : to-boolean/ to-byte/ to-number/ to-pulse/ to-boolean8. 0.0.3 [05.02.2019 ] : bit/ Set/ Clear/ Read/ Write/ Shift/ ShitLeft/ ShiftRight, and/ or/ not/ xor, sizeof. 0.0.4 [06.02.2019] : wait /delay /time /timer/ ticker - micro/milli/sec. 0.1.0 [11.02.2019 ] : First Released. 0.1.1: [23.02.2019]: Added info. 0.1.3: [01.05.2019]: Ports/Casts/Bits/Progress projects are merged. 0.1.4: [29.10.2019]: Stepper
NodeDescription
aall-bitsNo description
aall-castsNo description
aall-portsNo description
aall-timesNo description
bit(number)
Get Number that is N bit is set. shiftleft(1,N)
bit-and(number)
Computes bitwise AND of two or more number in integer_32. A resulting bit at a particular position is 1 only if corresponding bits of all inputs are 1.
bit-clear(number)
Clear (zero) bit of the number value. (0 is right, 31 is left) 31 is sign bit.
bit-not(number)
Computes bitwise NOT of a number. Also known as Two's Complement. Instead of Byte, Its OUT= (-1)*(IN+1).
bit-or(number)
Computes bitwise OR of two or more numbers. A resulting bit at a particular position is 0 only if all corresponding bits of inputs are 0.
bit-read(number)
Return bit state of the Input Byte Value. (zero or 1) (0 is right, 31 is left) 31 is sign bit.
bit-set(number)
Set (1) bit of the number value. (0 is right, 31 is left) 31 is sign bit.
bit-shift(number)
Shift right the number value. (0 is right, 30 is left) 31 is sign bit. Side is Shift Left = True, Right =False.
bit-shiftleft(number)
Shift left the number value. (0 is right, 30 is left) 31 is sign bit.
bit-shiftright(number)
Shift right the number value. (0 is right, 31 is left) 31 is sign bit.
bit-write(number)
Set bit of the number value by SIG. (0 is right, 30 is left) 31 is sign bit.
bit-xor(number)
Computes bitwise XOR of two or more numbers. A resulting bit at a particular position is 1 only if an odd number of corresponding bits of inputs is 1.
delay(micro)No description
delay(milli)No description
delay(second)No description
e-analogs
Arduino UNO Analog Ports.
e-booleanNo description
e-digitals
Arduino UNO Digital Ports.
e-digitals-pwm
Arduino UNO Digital Ports that have PWM.
e-pullsNo description
read(analog)No description
read(digital)No description
sizeof(number)
Size of Number in Byte.
ticker(milli)
Outputs pulses at regular intervals in milliseconds.
ticker(second)
Outputs pulses at regular intervals in seconds.
time(micro)No description
time(milli)No description
time(second)No description
timer(micro)No description
timer(milli)No description
timer(second)No description
to-boolean(byte)No description
to-boolean(number)
If Pulse received then return True.
to-boolean(pulse)
If Pulse received at UPD then out True else false
to-boolean8(byte)
Cast Byte to Booleans. Set boolean of bits of byte.
to-byte(boolean)No description
to-byte(boolean8)
Return Byte (binary form) of Boolean inputs.
to-byte(number)No description
to-byte(pulse)No description
to-number(boolean)No description
to-number(boolean8)
Return Number of Boolean inputs.
to-number(byte)No description
to-number(pulse)No description
to-pulse(boolean)No description
to-pulse(byte)
Convert byte to pulse. If input>0 then emit pulse.
to-pulse(number)No description
wait(micro)
If SET, Delay Microseconds and DONE.
wait(milli)
If SET, Delay Milli seconds and DONE.
wait(second)
If SET, Delay seconds and DONE.
write(analog)No description
write(analog-ports)No description
write(analog-pwm)No description
write(digital)No description
write(digital-bits)
Write Bits from Start to Stop Index of Bits. Stop Index must be greater than start and between (0..7).
write(digital-portb)No description
write(digital-portd)No description
write(digital-ports)No description
stepper(milli)
Lineary animates an internal value toward max value `MAX` with a rate `STEP` in milli seconds. Use the node to smoothen LED switching, motor starting, or servo angular position update. xod/core/fade
stepper(second)
Lineary animates an internal value toward max value `MAX` with a rate `STEP` in seconds. Use the node to smoothen LED switching, motor starting, or servo angular position update. xod/core/fade
To use the nodes in your project you should have the koadrobot/arduino library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.