Ajout Display dans while(1).

L'écran reste bloqué en Busy et ne change pas.
master
Gaël Pongnot 2 years ago
parent 4ac247632c
commit 5e2b3eaf16
  1. 3
      .gitignore
  2. 4
      .settings/language.settings.xml
  3. 4
      src/lib_epaper_2in9.c
  4. 4
      src/main.c

3
.gitignore vendored

@ -1,2 +1,3 @@
/flash
*.launch
*.launch
*.probe*

@ -4,11 +4,11 @@
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuildCommandParser" id="com.crt.advproject.GCCBuildCommandParser" keep-relative-paths="false" name="MCU GCC Build Output Parser" parameter="(arm-none-eabi-gcc)|(arm-none-eabi-[gc]\+\+)|(gcc)|([gc]\+\+)|(clang)" prefer-non-shared="true"/>
<provider class="com.crt.advproject.specs.MCUGCCBuiltinSpecsDetector" console="false" env-hash="-1432391210850164469" id="com.crt.advproject.GCCBuildSpecCompilerParser" keep-relative-paths="false" name="MCU GCC Built-in Compiler Parser" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<provider class="com.crt.advproject.specs.MCUGCCBuiltinSpecsDetector" console="false" env-hash="-722175861235218979" id="com.crt.advproject.GCCBuildSpecCompilerParser" keep-relative-paths="false" name="MCU GCC Built-in Compiler Parser" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
</extension>
</configuration>
</project>
</project>

@ -153,9 +153,9 @@ void epaper_senddata(uint8_t data)
void epaper_reset()
{
_epaper_digitalwrite(RST_PIN, 0);
for(uint32_t i = 0; i<10000; i++);
for(uint32_t i = 0; i<1000; i++);
_epaper_digitalwrite(RST_PIN, 1);
for(uint32_t i = 0; i<10000; i++);
for(uint32_t i = 0; i<1000; i++);
}
void epaper_setframe(uint8_t* image_buffer, uint16_t x, uint16_t y, uint16_t w, uint16_t h)

@ -20,15 +20,17 @@ int main(void) {
init_lcd();
lcd_puts("Test e-paper");
lcd_position(1, 0);
lcd_puts("Initialisation ok ");
lcd_puts("Init ok ");
int j = 0;
while(1) {
for(int i = 100000; i>0; i--);
epaper_clearframe(0xFF);
epaper_display();
for(int i = 100000; i>0; i--);
epaper_clearframe(0x88);
epaper_display();
lcd_position(1, 0);
lcd_puts(" ");

Loading…
Cancel
Save