
Dave Schulpius
PRO
USA

#1
Code:
$x = "Hello"
$a=0
:start
$y = GetCharAt($x, $a)
print("$a = $y")
$a = $a + 1
if ($a = Length($x))
Halt()
goto(START)
Code:
$x = "Hello"
$a=0
:start
$y = $x[$a]
print("$a = $y")
$a = $a + 1
if ($a = Length($x))
Halt()
goto(START)
Code:
$ReadAddress = (0x09 << 1) + 1
Print("Read Address: $ReadAddress")
$raw = i2cRead(AUTO, $ReadAddress, 3)
Print("Received: Length($Raw) Bytes")
PrintHex($Raw)
$Red = GetByte($Raw[0])
$Green = GetByte($Raw[1])
$Blue = GetByte($Raw[2])
Code:
# Check if $Red is a numeric value
if (IsNumeric($Red) = false)
print("Set the Red value to a number")
halt()
endif
# Check if $Green is a numeric value
if (IsNumeric($Green) = false)
print("Set the Green value to a number")
halt()
endif
# Check if $Blue is a numeric value
if (IsNumeric($Blue) = false)
print("Set the Blue value to a number")
halt()
endif
print("Red: $Red, Green: $Green, Blue: $Blue")
# Shift the bits over
# Set the LSB (first bit) to a 0
# When first bit is a 0 on i2c, that means
# it is a Write Address
$WriteAddress = 0x09 << 1
print("Write Address: $WriteAddress")
i2cWrite($WriteAddress, 'n', $Red, $Green, $Blue)
For schools, personal use & organizations. This edition is updated every 6-9 months.
Experience the latest features and bug fixes weekly. A Pro subscription is required to use this edition.
Have you finished programming your robot? Use this to run existing ARC projects for free.
Feature | ARC Teams FREE |
ARC PRO |
---|---|---|
Get ARC for Free | View Plans | |
Usage | Personal DIY Education |
Personal DIY Education Business |
Premium support | $14.99/ticket (optional) |
✓ 1 request/month ($9.99 for additional requests) |
Feature requests | ✓ Yes | |
Early access to new features & fixes | ✓ Yes | |
Simultaneous microcontroller connections* | 1 | ✓ 255 |
Robot skills* | 20 | ✓ Unlimited |
Skill Store plugins* | 1 | ✓ Unlimited |
Cognitive services usage** | 10/day | ✓ 6,000/day |
Auto-positions gait actions* | 40 | ✓ Unlimited |
Speech recongition phrases* | 10 | ✓ Unlimited |
Camera devices* | 1 | ✓ Unlimited |
Vision resolution | max 320x240 | ✓ Unlimited |
Interface builder* | 2 | ✓ Unlimited |
Cloud project size | ✓ 128 MB | |
Cloud project revision history | ✓ Yes | |
Create Exosphere requests | ✓ 50/month | |
Exosphere API access | Contact Us | |
Volume license discounts | Contact Us | |
Get ARC for Free | View Plans |
ARC Early Access will give you immediate updates and new features needed to unleash your robot's potential!