15
1. Digital Ports
There are six digital Grove ports. They are equivalent to
digital pins 0 through 7 on the Seeeduino Lotus.
Normally, they are used when reading a digital sensor
that only outputs 0 or 1, or turning on or off an actuator.
Some of these ports are multi-purpose and can
function as PWM (pulse width modulation) outputs.
They are port 3, port 5 and port 6. You will need these
ports when driving a servo or fading an LED.
Digital ports are a must for serial communication too.
There is one built-in hardwired serial port, which is
UART, on port 1. This is the Seeeduino’s default port for
serial communication with the PC.
In cases where you need at least two serial devices or
you need an available serial port for debugging purpos-
es, other digital ports, software serial ports, can be
used as well. We will encounter them a lot in our Grove
system.