0801/0802/0803指示灯没有上拉下拉,默认不用倒置,高电平有效亮灯

This commit is contained in:
大石头 2017-03-30 15:30:16 +08:00
parent fd3461dc26
commit 4974c0aa70
4 changed files with 4 additions and 6 deletions

View File

@ -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);
}

View File

@ -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

View File

@ -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)

View File

@ -8,8 +8,6 @@ class AP0802 : public AP0801
{
public:
AP0802(int hardver);
virtual void InitLeds();
};
#endif