toggle menu
OpenBCI Forum
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Activity
Sign In
·
Register
×
Home
›
Hardware
›
Cyton
How to use ATmega pins?
BongwooBak
January 2015
in
Cyton
I would like to use the ATmega pins A0~A5 with digital output.
How can I do?
Comments
BongwooBak
January 2015
I have the 8-bit board
biomurph
Brooklyn, NY
January 2015
You will need to modify the Arduino firmware located on our git here
https://github.com/OpenBCI/OpenBCI_8bit
The pins A0 to A5 work just like the analog pins on the Arduino UNO. You can use them as analog inputs,
or you could use them as digital IOs. To make them digital, simply write
pinMode(14,INPUT); // turns analog pin 0 to a digital input
or
pinMode(14,OUTPUT); // turns analog pin 0 to a digital output
then use the pins as you like in the loop()
check out this tutorial that covers our 32bit board.
http://docs.openbci.com/tutorials/04-External_Trigger_32bit_Example
the code is quite similar.
Currently, we are working on tutorial for the 8bit board as well.
Sign In
or
Register
to comment.
Comments