Main Menu
Counter
This page today ...
total: 0
unique: 0

This page ever ...
total: 210
unique: 141

Site ...
total: 3242
unique: 1660
Online
  • Guests: 2
  • Members: 0
  • Newest Member: ole
  • Most ever online: 47
    Guests: 47, Members: 0 on Wednesday 21 February 2018 - 23:52:15
Chatbox
You must be logged in to post comments on this site - please either log in from the Login box or from here.If you are not registered click here to signup.


bullet Kim
1 year ago
test
Royalsystems blog

MCS Electronics Forum

  • Various : SH1106 brightness settings - how to change? : REPLY



    thank you,
    the library I have for the SH1106 has this informations like this

    _gwrite_cmd:
    call _i2c_start
    ldi r17,&H78
    call _i2c_write ; write slave address
    ldi r17,&H00 ; command mode
    call _i2c_write
    mov r17,r24 ; command address
    Rjmp _Gwrite_DataMisc ; same code
    _gwrite_data:
    ldi r17,&H78 ;write slave address data write
    call _i2c_start
    call _i2c_write ; write data mode
    ldi r17,&H40
    call _i2c_write
    mov r17,r24 ; data
    _gwrite_datamisc:
    call _i2c_write ; write Data
    jmp _i2c_stop


    but I still can not change brightness in the programm, only if I change the library at the start of the program.


    When I wrte somewhere in the programm

    GLCDCMD &H81

    GLCDDATA 50 (for example),

    brightness doesn´t change

  • Various : SH1106 brightness settings - how to change? : REPLY



    this is a graphic lcd. so i was wrong, it must be : GLCDCMD and GLCDDATA
    but the lib must support it. the labels _gwrite_cmd and _gwrite_data must be present.
    for example from glcdssd1306 :

    [b:3b1b7b071a]_gwrite_cmd:[/b:3b1b7b071a]
    #IF _XMEGA
    rcall _XM_i2c_start
    #ELSE
    call _i2c_start
    #ENDIF
    ldi r17,&H78 ; command address
    #IF _XMEGA
    rcall _XM_i2c_write ; write slave address
    #ELSE
    call _i2c_write ; write slave address
    #ENDIF
    mov r17,r24 ; command address
    Rjmp _Gwrite_DataMisc ; same code
    [b:3b1b7b071a]_gwrite_data:[/b:3b1b7b071a]
    ldi r17,&H78 ; data write

  • Various : SH1106 brightness settings - how to change? : REPLY



    Thank you!
    it works to change it in the libraty file.

    But when I want to write it as a commane

    lcdcmd &H81
    lcddata 50

    I get the remark "label not found (LCD_CONTROL).
    Is that a library? I cannot find in the Lib-folder in Bascom

    regards

  • BASCOM-AVR : Creating a Bascom CAN-bus lib for MCP2515 chip : REPLY



    Hi
    I just now notice the latest post regarding the library - very good news .

    CAN on BASCOM is super easy - hope this lib will work as a second port .

    Regards
    Nico

  • Share your working BASCOM-AVR code here : CAN-bus library for general CAN-bus controller chip MCP2515 : REPLY



    Hi

    I have a project that require 2 CAN bus 'ports'

    One way is to use more powerful dual can port ARM chips .

    But I prefer the BASCOM route with one channel a AT90 CAN 128 - the other channel the MCP 2515 .

    Is the above library available ?

    Regards
    Nico

  • BASCOM-AVR : 2.0.8.2 installation don't will work : REPLY



    Hello albertsm,

    You are right, thank you, it's solved

    Regards
    P_Santos

  • BASCOM-AVR : 2.0.8.2 installation don't will work : REPLY



    your problem was that you copied the 2081 files over the 2082 files.
    you only need the bscavrl.dll file

  • Various : SH1106 brightness settings - how to change? : REPLY



    according the datasheet, the contrast is set with &H81 followed by the value.
    the table you post has wrong remarks : .db &H81, &HCF ; SETDISPLAYOFFSET , 00
    i think the CF is what you want to change.

    you can also use lcdcmd and lcddata

    like this :

    lcdcmd &H81
    lcddata 0-255 value for contrast

  • Various : SH1106 brightness settings - how to change? : NEWTOPIC



    Dear all,
    I recieved some SH1106 few days ago, and I would like to dim it a little bit, but it doesn´t work.
    I tried to adjust the settings in the .lib file, as I did successfully in a .lib file for SSD1306, but brightness is always on the maximum level.
    I have a .lib file from bascomforum.de, it works properly except of brightness settings.

    ; slave address, CO|DC|ctrl, data
    ;CO-continuation bit, if 0 next data will be normal data
    ;ctrl-if 0, data is a command, if 1 data is normal data stored in GDRAM


    here an extract of the library of the SH1106:

    _lcd_init_data:
    .db &HAE, &H00 ; SETDISPLAYCLOCKDIV , ratio 0x80
    .db &H10, &H40 ; SETMULTIPLEX , 1f 128x32
    .db &H81, &HCF ; SETDISPLAYOFFSET , 00
    .db &HA1, &HC8 ; SETSTARTLINE , CHARGEPUMP
    .db &HA6, &HA8 ; vccstate 14 , MEMORYMODE
    .DB &H3F, &HD3 ; A0 upside down SEGREMAP
    .db &H00, &HD5 ; COMSCANDEC , SETCOMPINS
    .db &H80, &HD9 ; 02 128x32 12 , SETCONTRAST
    .db &HF1, &HDA ; constrast value 255, SETPRECHARGE,
    .db &H12, &HDB ; vccstate f1 , SETVCOMDETECT
    .db &H40, &H20 ; &H40 , DISPLAYALLON_RESUME
    .db &H02, &H8D ; NORMALDISPLAY
    .db &H14, &HA4
    .db &HA6, &HAF

    I adjusted the contrast value to different levels like 50, 10 (written in hex), but brightness is always the maximum.
    As said, it works in the .lib file for SSD1306 and SSD1306 displays. The library for SSD1306 is embedded in my bascom 2.0.8.2,
    but, as library for SH1106 is not in, I transfered it manually into lib folder.
    Does somebody have an idea?
    Thanks in advance

  • BASCOM-AVR : 2.0.8.2 installation don't will work : REPLY



    Hello,

    It works, uninstalled and installed again, and now it´s fine

    Regards
    P_Santos

| Date published: not known
Back to newsfeed list
Welcome
Username or Email:

Password:




[ ]
[ ]
Headlines

»Various : SH1106 brightness settings - how to change? : REPLY
thank you, the library I have for the SH1106 has this informations like this _gwrite_cmd: call _i2c_start ldi r17,&H78 ...
»Various : SH1106 brightness settings - how to change? : REPLY
this is a graphic lcd. so i was wrong, it must be : GLCDCMD and GLCDDATA but the lib must support it. the labels _gwrite_cmd and ...
»Various : SH1106 brightness settings - how to change? : REPLY
Thank you! it works to change it in the libraty file. But when I want to write it as a commane lcdcmd &H81 lcddata 50 I...
»BASCOM-AVR : Creating a Bascom CAN-bus lib for MCP2515 chip : REPLY
Hi I just now notice the latest post regarding the library - very good news . CAN on BASCOM is super easy - ho...
»Share your working BASCOM-AVR code here : CAN-bus library for general CAN-bus controller chip MCP2515 : REPLY
Hi I have a project that require 2 CAN bus 'ports' One way is to use more powerful dual can port ARM chips . But I ...
»BASCOM-AVR : 2.0.8.2 installation don't will work : REPLY
Hello albertsm, You are right, thank you, it's solved Regards P_Santos
»BASCOM-AVR : 2.0.8.2 installation don't will work : REPLY
your problem was that you copied the 2081 files over the 2082 files. you only need the bscavrl.dll file
»Various : SH1106 brightness settings - how to change? : REPLY
according the datasheet, the contrast is set with &H81 followed by the value. the table you post has wrong remarks : .db &H81...
»Various : SH1106 brightness settings - how to change? : NEWTOPIC
Dear all, I recieved some SH1106 few days ago, and I would like to dim it a little bit, but it doesn´t work. I tried to adjust t...
»BASCOM-AVR : 2.0.8.2 installation don't will work : REPLY
Hello, It works, uninstalled and installed again, and now it´s fine Regards P_Santos


Date published: not known
Details

»"Show Dead Code" verlässlich?
Moin, Ich habe mal eine Frage zur "Show Dead Code" Funktion. Und zwar graut er bei mir Funktionen aus, die trotzdem verwendet werden. Folgendes al...
»Daten : Speichereffizent speichern und auswerten : Temperatur
Hallo, ich habe mir ein Thermometer auf Basis eines NTC gebastelt. pollin.de/p/ntc-widerstand-10-kohm-1-220757 Jetzt habe ich die 1024stel je °C ...
»Mehrere Atmel Controller an einem externen Quarzoszillator
Hallo, ich plane für mein nächstes Projekt einen ATtiny4313 und einen Mega168 an einem externen TTL-Quarzoszillator 18,432 Mhz zu betreiben. Beide...
»SSD1306 OLED Display
Hallo, OLED Display SSD1306 in der Größe 0.96 Zoll oder 1.3 Zoll mit der Auflösung 128x64 oder 128x32 Pixel. Das Display wird in der Regel mit I2...
»Bascom Terminal emulator
Hallo Freunde, ist Euch schon aufgefallen, dass am Teminal emulator eine nette Eigenschaft nicht mehr vorhanden Ist? Bisher konnte man mit Print C...
»OLED-Display am Arduino Mega
Hallo,vielleicht kann mir jemand helfen.Ich hatte am Arduino ein 20x4-Display von Elecronic Assembly(DEM 20486 SBH-PW-N) über ein I2C-Backpack ange...


Date published: Sat, 18 Jan 2020 09:27:32 +0000
Details

»93c46 editor programmer bascom & vb93c46 editor programmer bascom & vb
»93c46 Bascom & VB693c46 Bascom & VB6
»Analog clock on SSD1289 3.2" 240x320 lcdAnalog clock on SSD1289 3.2" 240x320 lcd
»Nextion HMI lcd with KaraDio the best webradio esp8266Nextion HMI lcd with KaraDio the best webradio esp8266
»Adding 240x320 lcd to the WifiWebRadioAdding 240x320 lcd to the WifiWebRadio
»IV-17 Nixie clock GPS set time & date at power onIV-17 Nixie clock GPS set time & date at power on


Date published: not known
Details

»Bascom Can Bus Sniffer
»R.I.P Ben Zijlstra
Remembering Ben Zijlstra We hope that people who love Ben will remember and celebrate his life. more info at MCS www.mcselec.com/index2.ph...
»KaRadio webradio ESP8266
The Dimitris board is available at https://github.com/dsaltas/WiFi-WebRadio  This is a hardware project for Ka-Radio
»93C46
small tool to edit 93C46 eeprom written in BascomAVR & VB  Bascom control the 93C46 so we sent data via comport from VB code will be added later ...
»nRF24L01+ RC Controller
This is a RC controller TX & RX unit with nRF24L01+ nRF24L01+ / with PA and LNA for longer range facts: TX 1 x potmeter for servo ...
»RAW lcd
Connecting RAW lcd to atmega8 the lcd is 6 digit + time glass LCD Hour Meter for  tractor ,air compressor, ect the lcd have 4 com pins  & 14...


Date published: not known
Details


Proudly powered by e107 which is released under the terms of the GNU GPL License.