jurs / arduino-playtune

A background polyphonic music generator for Aduino microprocessor boards
1 stars 0 forks source link

Possible attiny85 support? #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. I have the test sketch
2. i try and compile
3. it says :
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp: In member 
function 'void Playtune::tune_initchan(byte)':
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:330: error: 
'TCCR1A' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:331: error: 
'TCCR1B' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:332: error: 
'WGM12' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:340: error: 
'TCCR2A' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:341: error: 
'TCCR2B' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:342: error: 
'WGM21' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:343: error: 
'CS20' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp: In function 
'void tune_playnote(byte, byte)':
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:459: error: 
'TCCR2B' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:471: error: 
'TCCR1B' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:485: error: 
'TIMSK0' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:491: error: 
'TIMSK1' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:495: error: 
'OCR2A' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:498: error: 
'TIMSK2' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:498: error: 
'OCIE2A' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp: In function 
'void tune_stopnote(byte)':
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:538: error: 
'TIMSK0' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:543: error: 
'TIMSK1' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp: In member 
function 'void Playtune::tune_stopchans()':
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:685: error: 
'TIMSK0' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:689: error: 
'TIMSK1' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:692: error: 
'TIMSK2' was not declared in this scope
C:\Users\Joey(2)\Documents\Arduino\libraries\playtune\Playtune.cpp:692: error: 
'OCIE2A' was not declared in this scope

windows 8 arduino 1.0.5 attiny85 arduino uno as isp ArduinoISP version 04m3

Original issue reported on code.google.com by joeysfis...@gmail.com on 20 Apr 2014 at 8:32

theawsomeavr commented 5 years ago

hi, i am tooooo late but i have rewrote the playtune library so that it works with the attiny85, the bat thing is since the attiny85 has very litle space you run out of memory very often with 3 min long midis https://github.com/theawsomeavr/Attiny85_Playtune_master