ARDUINO DUE

Ici on parle code, configuration matériel, bibliothèques Arduino ou comment utiliser les modules e-licktronic...

ARDUINO DUE

Postby Philippe » Oct 31st, '13, 07:32

Bonjour,
Il semble que la librairie "SRIO" ne fonctionne pas avec la carte ARDUINO DUE le compilateur donne les messages suivants.

Code: Select all
/Applications/Arduino v152 2560 Buffer512.app/Contents/Resources/Java/libraries/SRIO/SRIO.cpp: In member function 'uint8_t SRIO::shiftIn_SRIO()':
/Applications/Arduino v152 2560 Buffer512.app/Contents/Resources/Java/libraries/SRIO/SRIO.cpp:31: error: 'PORTH' was not declared in this scope
/Applications/Arduino v152 2560 Buffer512.app/Contents/Resources/Java/libraries/SRIO/SRIO.cpp:33: error: 'PINB' was not declared in this scope
/Applications/Arduino v152 2560 Buffer512.app/Contents/Resources/Java/libraries/SRIO/SRIO.cpp: In member function 'void SRIO::shiftOut_SRIO(uint8_t)':
/Applications/Arduino v152 2560 Buffer512.app/Contents/Resources/Java/libraries/SRIO/SRIO.cpp:53: error: 'PORTB' was not declared in this scope
/Applications/Arduino v152 2560 Buffer512.app/Contents/Resources/Java/libraries/SRIO/SRIO.cpp:54: error: 'PORTH' was not declared in this scope
/Applications/Arduino v152 2560 Buffer512.app/Contents/Resources/Java/libraries/SRIO/SRIO.cpp: In member function 'void SRIO::Led_All_On()':
/Applications/Arduino v152 2560 Buffer512.app/Contents/Resources/Java/libraries/SRIO/SRIO.cpp:62: error: 'PORTB' was not declared in this scope
/Applications/Arduino v152 2560 Buffer512.app/Contents/Resources/Java/libraries/SRIO/SRIO.cpp: In member function 'void SRIO::Led_All_Off()':
/Applications/Arduino v152 2560 Buffer512.app/Contents/Resources/Java/libraries/SRIO/SRIO.cpp:81: error: 'PORTB' was not declared in this scope
/Applications/Arduino v152 2560 Buffer512.app/Contents/Resources/Java/libraries/SRIO/SRIO.cpp: In member function 'void SRIO::Led_SR_Write(byte, byte)':
/Applications/Arduino v152 2560 Buffer512.app/Contents/Resources/Java/libraries/SRIO/SRIO.cpp:101: error: 'PORTB' was not declared in this scope
/Applications/Arduino v152 2560 Buffer512.app/Contents/Resources/Java/libraries/SRIO/SRIO.cpp: In member function 'void SRIO::Led_Pin_Write(byte, byte)':
/Applications/Arduino v152 2560 Buffer512.app/Contents/Resources/Java/libraries/SRIO/SRIO.cpp:123: error: 'PORTB' was not declared in this scope
Code: Select all
Ground control to Major Tom
User avatar
Philippe
 
Posts: 20
Joined: Feb 27th, '13, 20:08
Location: Yvelines (78) France

Re: ARDUINO DUE

Postby e-licktronic » Oct 31st, '13, 21:16

Bonjour Philippe,

La carte Midilickuino n'est pas compatible avec Arduino DUE car elle est alimenté en 5V et les IO du DUE n'accepte que 3.3v.
Il faudrait modifier un peu la carte pour l’alimenté en 3.3v.
En ce qui concerne la bibliothèque SRIO, n'ayant pas de DUE je n'ai pas pu la tester mais je dois en recevoir un prochainement ;)

Cordialement,
e-licktronic
Best regards,
e-licktronic
User avatar
e-licktronic
Site Admin
 
Posts: 578
Joined: Feb 16th, '11, 13:36

Re: ARDUINO DUE

Postby Philippe » Nov 1st, '13, 08:06

Bonjour,

Oui, j'ai fais des tests en intercalant un convertisseur de niveau 3.3V <==> 5V.
Il semble qu'avec la DUE, la gestion des PORTs d'entrée sortie soit différente et le compilateur trouve des erreurs dans la librairie.

Philippe
Ground control to Major Tom
User avatar
Philippe
 
Posts: 20
Joined: Feb 27th, '13, 20:08
Location: Yvelines (78) France


Return to E-licktronic rencontre Arduino

Who is online

Users browsing this forum: No registered users and 1 guest

cron