epaper.js icon indicating copy to clipboard operation
epaper.js copied to clipboard

feat: add 2in7 v2 support

Open Suniron opened this issue 1 year ago • 2 comments

Suniron avatar Aug 31 '24 13:08 Suniron

i could not compile the 2in7-v2

` │ ../src/c/EPD_2in7_V2_node.cc: In function Napi::Value Display(const Napi::CallbackInfo&)

│ ../src/c/EPD_2in7_V2_node.cc:28:67: error: too many arguments to function ‘void EPD_2IN7_V2_Clear()’ │ 28 | EPD_2IN7_V2_Clear(reinterpret_cast<uint8_t *>(jsBuffer.Data())); │ | ^ │ In file included from ../src/c/EPD_2in7_V2_node.cc:4: │ ../src/c/EPD_2in7_V2.h:43:6: note: declared here │ 43 | void EPD_2IN7_V2_Clear(void); │ | ^~~~~~~~~~~~~~~~~ │ make: *** [waveshare2in7v2.target.mk:118: Release/obj.target/waveshare2in7v2/src/c/EPD_2in7_V2_node.o] Error 1 │ gyp ERR! build error `

jflorimo avatar Nov 22 '24 22:11 jflorimo

replacing EPD_2IN7_V2_Clear by EPD_2IN7_V2_Display in EPD_2in7_V2_node.cc line 28 fix the issue. Its working great

jflorimo avatar Nov 22 '24 22:11 jflorimo