User Tools

Site Tools


wswan:tutorial:hello_display

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wswan:tutorial:hello_display [2024/02/17 13:53] – created asiewswan:tutorial:hello_display [2025/07/21 17:41] (current) – update to libws v2 asie
Line 68: Line 68:
  
 <code C> <code C>
-    ws_display_set_shade_lut(SHADE_LUT_DEFAULT);+    ws_display_set_shade_lut(WS_DISPLAY_SHADE_LUT_DEFAULT);
 </code> </code>
  
Line 80: Line 80:
  
 <code C> <code C>
-    outportw(IO_DISPLAY_CTRLDISPLAY_SCR1_ENABLE);+    outportw(WS_DISPLAY_CTRL_PORTWS_DISPLAY_CTRL_SCR1_ENABLE);
 </code> </code>
  
Line 87: Line 87:
 <code C> <code C>
 while (1) { while (1) {
-    outportw(IO_SCR_PAL_0, inportw(IO_SCR_PAL_0) + 1); // (1)! +    outportw(WS_SCR_PAL_0_PORT, inportw(WS_SCR_PAL_0_PORT) + 1); // (1)! 
-    ws_busywait(65535); // (2)!+    ws_delay_ms(100); // (2)!
 } }
 </code> </code>
wswan/tutorial/hello_display.txt · Last modified: by asie