I already install the DrAzzy ATTiny core successfully and the compile do not have error. So I uploaded the following program into my shield.
I try to use the Analog read with a smaller code, the problem is my Serial Monitor doesnt show any things.
*/
//Digital Pin1 is PWM Output to drive the L293 (In ATTiny shall be 1 )
//Pin A1 as Analog probe pin
int probe = A1;
int val;
void setup()
{
pinMode (1, OUTPUT);
Serial.begin(9600);
}
void loop()
{
int pulseWidth;
int val = analogRead(probe);
Serial.println(val);
delay(500);
pulseWidth = map (val, 0, 1023, 0, 255);
analogWrite(1, pulseWidth);
}