Skip to content

Instantly share code, notes, and snippets.

View 18213020-18213038's full-sized avatar

Jessica Nathania 18213020-18213038

View GitHub Profile
/* Vibration Sensor ~ www.boarduino.blogspot.com */
const int vibrationSensorPin = 8; // Vibration Sensor di hubungkan ke Pin 2
int vibrationSensorState = 0; // Status saat pertama mulai = 0
int indikatorHijau = 3; // Set Pin 3 untuk LED Hijau
int indikatorBiru = 4; // Set Pin 4 untuk LED Biru
#define speakerPin 5 // Set Pin 5 untuk Buzzer
///Melody
/*int length = 15; // the number of notes
char notes[] = "ccggaagffeeddc "; // a space represents a rest
import java.net.*;
import java.io.*;
public class GreetingClient
{
public static void main(String [] args)
{
String serverName = args[0];
int port = Integer.parseInt(args[1]);
try