Erreur librairie Keypad

Bonjour, je souhaite faire marcher un clavier matriciel en utilisant le code donné sur mon club elec. sauf que meme apres avoir installé la bibliotheque Keypad il me met cette erreur : Merci d'avance ps: j'utilise arduino 1.0 et meme chose avec la version 0018

In file included from sketch_apr11a.cpp:61:
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:36:22: error: WProgram.h: No such file or directory
In file included from sketch_apr11a.cpp:61:
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:50: error: 'byte' does not name a type
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:51: error: 'byte' does not name a type
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:63: error: 'byte' has not been declared
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:63: error: 'byte' has not been declared
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:63: error: 'byte' has not been declared
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:63: error: 'byte' has not been declared
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:78: error: ISO C++ forbids declaration of 'byte' with no type
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:78: error: expected ';' before '*' token
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:79: error: ISO C++ forbids declaration of 'byte' with no type
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:79: error: expected ';' before '*' token
sketch_apr11a:115: error: no matching function for call to 'Keypad::Keypad(char*, byte [4], byte [4], const byte&, const byte&)'
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:63: note: candidates are: Keypad::Keypad(char*, int*, int*, int, int)
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:57: note:                 Keypad::Keypad(const Keypad&)
In file included from sketch_apr11a.cpp:61:
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:36:22: error: WProgram.h: No such file or directory
In file included from sketch_apr11a.cpp:61:
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:50: error: 'byte' does not name a type
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:51: error: 'byte' does not name a type
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:63: error: 'byte' has not been declared
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:63: error: 'byte' has not been declared
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:63: error: 'byte' has not been declared
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:63: error: 'byte' has not been declared
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:78: error: ISO C++ forbids declaration of 'byte' with no type
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:78: error: expected ';' before '*' token
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:79: error: ISO C++ forbids declaration of 'byte' with no type
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:79: error: expected ';' before '*' token
sketch_apr11a:115: error: no matching function for call to 'Keypad::Keypad(char*, byte [4], byte [4], const byte&, const byte&)'
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:63: note: candidates are: Keypad::Keypad(char*, int*, int*, int, int)
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:57: note:                 Keypad::Keypad(const Keypad&)
In file included from sketch_apr11a.cpp:61:
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:36:22: error: WProgram.h: No such file or directory
In file included from sketch_apr11a.cpp:61:
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:50: error: 'byte' does not name a type
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:51: error: 'byte' does not name a type
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:63: error: 'byte' has not been declared
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:63: error: 'byte' has not been declared
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:63: error: 'byte' has not been declared
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:63: error: 'byte' has not been declared
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:78: error: ISO C++ forbids declaration of 'byte' with no type
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:78: error: expected ';' before '*' token
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:79: error: ISO C++ forbids declaration of 'byte' with no type
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:79: error: expected ';' before '*' token
sketch_apr11a:115: error: no matching function for call to 'Keypad::Keypad(char*, byte [4], byte [4], const byte&, const byte&)'
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:63: note: candidates are: Keypad::Keypad(char*, int*, int*, int, int)
C:\Users\Tux\Desktop\arduino\libraries\Keypad/Keypad.h:57: note:                 Keypad::Keypad(const Keypad&)

Comment pourrais je faire marcher mon clavier matriciel ?

WProgram.h n'existe pas dans mon IDE 1.0 mais existe dans la v0023

Essaye de remplacer par "Arduino.h"

Bonjour,

jeje675:
Bonjour, je souhaite faire marcher un clavier matriciel en utilisant le code donné sur mon club elec. sauf que meme apres avoir installé la bibliotheque Keypad il me met cette erreur :
Merci d’avance
ps: j’utilise arduino 1.0 et meme chose avec la version 0018

Cette librairie a manifestement était écrite pour arduino <1.0 (0023, etc …).
Que tu dise qu’elle ne compile pas même sous 0018 me semble bien étrange ! Quelle erreur obtient tu sous 0018 ?

java.lang.NullPointerException
    at processing.app.debug.Compiler.compile(Compiler.java:75)
    at processing.app.Sketch.build(Sketch.java:1412)
    at processing.app.Sketch.compile(Sketch.java:1203)
    at processing.app.Editor$44.run(Editor.java:1807)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Voila mon erreur sous arduino 0018

Ha ... ça c'est pas une erreur de compilation, c'est une erreur Java (le langage dans lequel est écrit l'ide arduino). Tu devrais migrer en version 0023, tu as du tomber sur un bug spécifique à la version 0018 je pense.

okok merci ba je telercharge cette version je viendrais vous dire la réponse dans 30 mins :)

Edit : Ok merci beaucoup c'est parfait sa marche ;)