0801/0802/0803指示灯没有上拉下拉,默认不用倒置,高电平有效亮灯
This commit is contained in:
parent
fd3461dc26
commit
4974c0aa70
|
@ -117,7 +117,7 @@ void AP0801::InitLeds()
|
|||
{
|
||||
for (int i = 0; i < LedPins.Count(); i++)
|
||||
{
|
||||
auto port = new OutputPort(LedPins[i]);
|
||||
auto port = new OutputPort(LedPins[i], false);
|
||||
port->Open();
|
||||
Leds.Add(port);
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ public:
|
|||
void Register(uint offset, uint size, Handler hook);
|
||||
void Register(uint offset, IDataPort& dp);
|
||||
|
||||
virtual void InitLeds();
|
||||
void InitLeds();
|
||||
void InitButtons(const Delegate2<InputPort&, bool>& press);
|
||||
|
||||
// 打开以太网W5500
|
||||
|
|
|
@ -21,7 +21,7 @@ AP0802::AP0802(int hardver) : AP0801()
|
|||
Esp.Reset = PD3;
|
||||
}
|
||||
|
||||
void AP0802::InitLeds()
|
||||
/*void AP0802::InitLeds()
|
||||
{
|
||||
for (int i = 0; i < LedPins.Count(); i++)
|
||||
{
|
||||
|
@ -32,7 +32,7 @@ void AP0802::InitLeds()
|
|||
*port = false;
|
||||
Leds.Add(port);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
/*
|
||||
NRF24L01+ (SPI3) | W5500 (SPI2)
|
||||
|
|
|
@ -8,8 +8,6 @@ class AP0802 : public AP0801
|
|||
{
|
||||
public:
|
||||
AP0802(int hardver);
|
||||
|
||||
virtual void InitLeds();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue