This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 |