Add support for three wire spi
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +1,6 @@
|
|||||||
|
[submodule "eink/eink"]
|
||||||
|
path = eink/eink
|
||||||
|
url = git@git.blackmark.me:avr/eink.git
|
||||||
[submodule "eink/uart"]
|
[submodule "eink/uart"]
|
||||||
path = eink/uart
|
path = eink/uart
|
||||||
url = git@git.blackmark.me:avr/uart.git
|
url = git@git.blackmark.me:avr/uart.git
|
||||||
|
|||||||
Submodule eink/eink updated: 9a4193ee75...2e417a0f3a
@@ -441,7 +441,8 @@ constexpr auto IMAGE [[gnu::progmem]] = util::to_array<uint8_t>({
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
using spi_t = spi::Software<spi::SoftwareConfig<io::P::C4, io::P::NONE, io::P::C5, io::P::C3>>;
|
using spi_t = spi::Software<spi::SoftwareConfig<io::P::C4, io::P::NONE, io::P::C5, io::P::C3, 100'000,
|
||||||
|
spi::Mode::MODE_0, spi::BitOrder::MSB_FIRST, 9>>;
|
||||||
|
|
||||||
uart_t serial;
|
uart_t serial;
|
||||||
serial.init();
|
serial.init();
|
||||||
@@ -450,7 +451,9 @@ int main()
|
|||||||
|
|
||||||
serial << F("e-Paper demo") << F("\r\n");
|
serial << F("e-Paper demo") << F("\r\n");
|
||||||
|
|
||||||
auto einkDisplay = eink::Eink<200, 200, spi_t, io::P::C1, io::P::C2, io::P::C0>{};
|
io::Pin<io::P::C2>::dir(io::Dir::OUT);
|
||||||
|
io::Pin<io::P::C2>::write(false);
|
||||||
|
auto einkDisplay = eink::Eink<200, 200, spi_t, io::P::C1, io::P::NONE /*io::P::C2*/, io::P::C0>{};
|
||||||
einkDisplay.init();
|
einkDisplay.init();
|
||||||
|
|
||||||
serial << F("e-Paper init") << F("\r\n");
|
serial << F("e-Paper init") << F("\r\n");
|
||||||
|
|||||||
2
eink/spi
2
eink/spi
Submodule eink/spi updated: 999cd0e0c9...852ad5a318
Reference in New Issue
Block a user