ZEEUWS MUSEUM,
MIDDELBURG.
Taptjten van de slag bij Fort de Haak, 1573, vervaardigo' in de wever4 van Jan de Maeght, Middelburg, ca. 1600. 66,

b Vex,Stu_ . tic
4971 LA. e upoe.-( R & Luk C26., Ck. ba,142.A.(4-voexicel ze, ()co, tA.teA- ftv,zel d . bqz ctal (514,, tiA., ocittL t4Aet- (1 sh.v.iteg vcororVi 6:Lx tugs s 04-at • 01 1mi kex-- kibr ei CUM IA4k.ct a ZS tRA : Lat i Tc,,b ¢, -Ls ac., h Apt ratis 4tice,1 beetit 0Y(kk ct,E.Lito u19- 6,4 ) r ire . 3t.c. go<A.

r ft .8y L 47x-1, 4,2 c,t'asaA_ Uco G.teck
uo“, cb 7 Fauk.v re .
-00L Ai' 1,c,k rfle.(14,Rm., - M vet , 104 ft, ,t!--a-
https://www.onlineocr.net/
#include
//BUTTONS
int leftButton;
int rightButton;

//SOUND
float value;

//LIGHT
float zvalue;
float toneValue;


void setup() {

Serial.begin(9600);
CircuitPlayground.begin();

}



void loop() {


//INPUT REGISTRATION
// Take 10 milliseconds of sound data to calculate

//ASSIGN
value = CircuitPlayground.mic.soundPressureLevel(10); //SOUND
zvalue = CircuitPlayground.lightSensor(); //LIGHT
leftButton = CircuitPlayground.leftButton();
rightButton = CircuitPlayground.rightButton();

//CHECK shit needed for sound to light
Serial.print("Sound Sensor SPL: ");

Serial.println(value);

delay(1); //delays when it registers sound, can keep it lower numbers

//CHECK needed for light to sound
Serial.print("Light Sensor: ");

Serial.println(zvalue);

delay(1);




//DOING SOMETHING
if (leftButton ==1){ //button 1
// SOUND INPUT LIGHT OUTPUT
if(value>60){ //threshold
for (int i=0;i<10;i++){ //all lights

CircuitPlayground.setPixelColor(i, 155, 0, 150); //colour i want

if( i==9){ //if we have all lights

delay(0); //keep the lights on

CircuitPlayground.clearPixels(); //turn lights off

}
}

//LIGHT INPUT SOUND OUTPUT
if (rightButton ==1){
toneValue=zvalue+150;

delay(10);

tone(A0, toneValue, 10);
}

}


}



}


//CONFUSION:
//- How to connect this to external stuff??
//-switching modes is cute and all but its picking up the sound of buttons
//- why is the light to sound code not working?