Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
WGLabz
Published © Apache-2.0

RPi GPIO Programming Using Arduino Web IDE

Arduino recently launched support for programming ARM-based SBCs using the Arduino web editor, and Raspberry Pi is one of those SBCs.

BeginnerProtip1 hour7,900
RPi GPIO Programming Using Arduino Web IDE

Things used in this project

Story

Read more

Code

Code snippet #1

Plain text
#include <SoftwareSerial.h>
// SoftwareSerial mySerial(16, 15);
int led=18;
void setup() {
  Serial.begin(9600);
  for(int i=0;i<40;i++)
    pinMode(i, OUTPUT);
  Serial.println("Strating the application.");
}

void loop() {
  //Serial.println("Hello");
  for(int i=1;i<14;i++){
    digitalWrite(i, HIGH);
    delay(1000);
    digitalWrite(i, LOW);
    delay(1000);
  }
}

Credits

WGLabz
27 projects • 32 followers
Blogger/ Tinkerer and Smart Home Enthusiast. I have always loved to play around technology includeing Embedded System to server programming.
Contact

Comments

Please log in or sign up to comment.