Jump to content

bazooka07

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by bazooka07

  1. I am testing with the last version of Armbian (Ubuntu Bionic) and it's working fine.

    i2c-1 is enabled by default.
     

    sudo apt install python3-wheel python3-setuptools python3-dev build-essential
    
    sudo apt install python3-smbus
    
    git clone --depth 1 https://github.com/rm-hull/luma.oled
    
    git clone --depth 1 https://github.com/rm-hull/luma.examples
    
    cd luma.oled/
    
    sudo -H python3 setup.py install
    
    cd ~/luma.examples/examples
    
    python3 welcome.py

    Don't forget to add yourself in the "i2c" group and to connect your oled in the P27 (i2c1-sda) and P28(i2c1-scl) and 3.3volts.

    sudo usermod -aG i2c your-login

     

  2. Yes, I have Rock64 working with I2C and a 20x4 LCD display like this one

    Aliexpress

    and the dbrgn/RPLCD under Python 3.6.6 (Ubuntu Bionic 18.04) :

    git clone https://github.com/bazooka07/RPLCD.git -b test-entrypoint-1811 ( I fix a little bug for the test )

     

    I have too an ESP8266 (Nodemcu) and a OLed 0.96" display. I'm trying for running Oled with Rock64.

    The following library is working but don't keep  the display on when I leave my script

    pip3 install luma.oled

    My script :

    #!/usr/bin/env python3
    
    from luma.core.interface.serial import i2c, spi
    from luma.core.render import canvas
    from luma.oled.device import ssd1306
    
    serial = i2c(port=1, address=0x3C)
    device = ssd1306(serial)
    
    with canvas(device) as draw:
        draw.rectangle(device.bounding_box, outline='white', fill='black')
        draw.text((30, 40), 'Hello World', fill='white')

    Don't forget to connect on i2c-1 pin #27 (sda) and pin #28 (scl) unlike RPI3

     

  3. I have a Rock64 powered by Armbian version 5.60 kernel 4.4.162-rockchip64 Ubuntu Bionic

    How can I activate i2c0 and i2s0 ports for connecting a 16x2 characters LCD display like 1602LCD and a PCM5102 DAC ?

    I'm trying armbian-config and I'm reading https://docs.armbian.com/User-Guide_Allwinner_overlays/ but I'm getting no help.

    Thanks for advance.

  4. Hello,

    Each time I'm booting the  Rock64, it starts on Jan, 21 of 2016 but the filesystem has a superblock on Jan,28 of 2018, so in the future.

    It's inconsistant and the filesystem is checking each time and I'm waiting a few seconds. How can I avoid this trouble ?

    Here is the screen shot of logs through the tty/usb console. I'm booting from the spi flash and a sd-card with Ubuntu 18.04.1.

    Quote

    Begin: Will now check root file system ... fsck from util-linux 2.31.1
    [/sbin/fsck.ext4 (1) -- /dev/mmcblk1p1] fsck.ext4 -a -C0 /dev/mmcblk1p1
    ARMBIAN-BIONIC: Superblock last mount time (Sun Jan 28 15:58:17 2018,
        now = Thu Jan 21 08:50:18 2016) is in the future.
    FIXED.
    ARMBIAN-BIONIC: 39110/988000 files (0.1% non-contiguous), 314286/4096000 blocks
    done.
    done.

     

  5. Hello,

     

    I download Ubuntu Trusty for my orangepi PC. It's working fine.

    But the pointer for the mouse on the desktop is missing.

    And with command line (Alt-F1), the last line is under the screen.

     

    How to fix these two poins ?

     

    Regards

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines