View Index by Level
RANDOM PAGE

SITE SEARCH

LOG
IN

SIGN UP

HELP

Picaxe OLED


This is the AQA version closing after June 2019. Visit the the version for Eduqas instead.

To gain access to revision questions, please sign up and log in.

A2

When this was written, this OLED display was cheaper than similar LCD displays!

Build the OLED / LCD Test Circuit

Build this circuit and copy and paste the code below.

OLED-16x2.jpg

The OLED / LCD Test Code

; ===========================
; ===== OLED / LCD TEST =====
; ===========================

    SETFREQ M4
    CALL    WAIT1000MS
START:
    CALL    blank
    CALL    WAIT1000MS
    CALL    TESTTEXT
    CALL    WAIT1000MS
    JMP     START
    
; ======================================
; A subroutine to blank both lines.
; ======================================
blank:
    serout 7, N2400, (254, 128)   ' Blank First Line
    serout 7, N2400, ("                ")
    serout 7, N2400, (254, 192)   ' Blank Second Line
    serout 7, N2400, ("                ")
    ret
; ======================================

; ======================================
; A subroutine to show some test text.
; ======================================
TESTTEXT:
    serout 7, N2400, (254, 128)   ' First Line
    serout 7, N2400, ("0123456789ABCDEF")
    serout 7, N2400, (254, 192)   ' Second Line
    serout 7, N2400, ("FEDCBA9876543210")
    ret
; ======================================

 

 

 

reviseOmatic V3     Contacts, ©, Cookies, Data Protection and Disclaimers Hosted at linode.com, London