|
Beeper buzzer i2c sempre acceso su repetier firmware February 11, 2015 01:41PM |
Registered: 12 years ago Posts: 26 |
#define FEATURE_BEEPER true
/** Select type of beeper 0 = none 1 = Piezo connected to pin 2 = Piezo connected to a pin over I2C */ #ifndef BEEPER_TYPE #define BEEPER_TYPE 2 #define BEEPER_TYPE_INVERTING false #endif #if BEEPER_TYPE==1 && !defined(BEEPER_PIN) #define BEEPER_PIN 37 #endif #if BEEPER_TYPE==2 #define BEEPER_ADDRESS 0x40 // I2C address of the chip with the beeper pin #define BEEPER_PIN _BV(7) // Bit value for pin 8 #define COMPILE_I2C_DRIVER // We need the I2C driver as we are using i2c #endif
#define BEEPER_TYPE_INVERTING trueinvece di false, ma rimane uguale a prima, forse questo define si riferisce ad altro?
#define BEEPER_TYPE 0sta correttamente spento senza mai suonare.
|
Re: Beeper buzzer i2c sempre acceso su repetier firmware February 11, 2015 02:02PM |
Registered: 11 years ago Posts: 6,409 |
|
Re: Beeper buzzer i2c sempre acceso su repetier firmware February 11, 2015 02:39PM |
Registered: 12 years ago Posts: 26 |
).#if FEATURE_CONTROLLER==1 #include "uiconfig.h" #endifche corrisponde ad un pannello impostato a mano, vedi Configuration.h:
For displays and keys there are too many permutations to handle them all in once. For the most common available combinations you can set the controller type here, so you don't need to configure uicong.h at all. Controller settings > 1 disable usage of uiconfig.h 0 = no display 1 = Manual definition of display and keys parameter in uiconfig.h ... ... ...
#if BEEPER_TYPE==0
#define BEEP_SHORT {}
#define BEEP_LONG {}
#else
#define BEEP_SHORT beep(BEEPER_SHORT_SEQUENCE);
#define BEEP_LONG beep(BEEPER_LONG_SEQUENCE);
#endif
Proverò a modificare BEEPER_SHORT_SEQUENCE e BEEPER_LONG_SEQUENCE, però non credo che possa c'entrare qualcosa...