Camera Snapshot icon Camera Snapshot — Save camera snapshots to 'My Robot Pictures' (Pictures folder), manual or timed (0-100s), and trigger programmatically via controlCommand. Try it →
Asked
Resolved Resolved by ptp!
1 Participant
Set Digital On in Javascript

Set Digital On In Javascript

When I use the following JavaScript code:

Digital.set(1.d4, true);

I receive error Line 1: Unexpected token ILLEGAL.

I want to turn digital port d4 on, on my second EZB or Ezb 1.

What am I doing wrong?



Related Hardware (view all EZB hardware)
EZ-B V4 by EZ-Robot
EZ-B v4 with Synthiam ARCx controls servos, sensors, camera and audio over Wi-Fi or USB serial, no firmware needed.
Wi-Fi / USB
Servos 24
Camera
Audio
UART 3
I2C
ADC 8
Digital 24

ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

Author Avatar
PRO
USA
#1  

User-inserted image

Author Avatar
PRO
USA
#2   — Edited

Quote:

What am I doing wrong?
You need to check the help (intellisense) also is important to have the last release, the software is in beta and multiples updates are being released.

Author Avatar
PRO
USA
#3  

Thank you for the help