Giter Club home page Giter Club logo

piradio6's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

piradio6's Issues

Adafruit SSD1306 I2C default address wrong

Hi,

I am using SSD1306, Monochrome 0.96" 128x64 OLED from Adafruit and it did not work for me.
Turns out, that the default I2C address is 0x3D not 0x3C like some other models.
I tried changing the I2C address in the config file. But that did not work

It seems that the code uses a constat from the Adafruit library and not the I2C value from the config file.
So I changed line 36 in "ssd1306_class.py" to "oled = Adafruit_SSD1306.SSD1306_128_64(rst=RST, i2c_address=0x3d)" and that worked.

Would it be possible to add the config file I2C address varible here instead of hardcoding the address?

SSD1306_I2C_ADDRESS = 0x3C # 011110+SA0+RW - 0x3C or 0x3D

gpio=None, spi=None, i2c_bus=None, i2c_address=SSD1306_I2C_ADDRESS,

oled = Adafruit_SSD1306.SSD1306_128_64(rst=RST)

pygame running unreasonably slow

I had a problem with a very slow running loop that left the touch radio quite unresponsive I have changed the clock. Tick(30) in line 1383 of gradio.py to clock. Tick() and that has helped a great deal. The vgtadio.py should probably be updated as well.

DietPi support

It would be nice to be able to install piradio on Minimal distro like DietPi. Currently there are problems with user and home path. DietPi uses "dietpi" user instead of "pi"

SH1106 SPI connection instead of I2C

After SH1106 I2C test which was unreliable (the device sometimes was disconnected and radiod crashed with I2C error), i'm a bit confused what to do change in configuration to switch I2C to SPI. Changing display_type to OLED_128x64 has no effect as the radiod is crashing with I2C error, also tried with commenting i2c_address and i2c_bus. The SPI wiring is not obvious, i used
OLED - RPi
Vcc - 3.3v
GND - GND
DIN - GPIO10
CLK - GPIO11
CS - GPIO8
D/C - GPIO24
RES - GPIO25

calling 1106 via SPI within my perl program is working fine. Any suggestions?

Add a small "exit" button to the main screen

I frequently use my Pi without a keyboard. If it is having network problems (so no remote login), I would like to use a mouse to exit PiRadio so I can get to the desktop to reboot it.

Error in "displaySource()" with Adafruit-LCD

I made an update to 7.2 today on my Raspberry Pi with an Adafruit-LCD with 5 buttons.
Now the LCD stuck when i push the menu button twice for changing the playlist.

I reboot the rpi, start this skript "sudo ./radiod.py nodaemon", press the menu button twice and get this:
"
/usr/share/radio $ sudo ./radiod.py nodaemon
Radio running pid 944
Traceback (most recent call last):
File "./radiod.py", line 1450, in
daemon.nodaemon()
File "/usr/share/radio/radio_daemon.py", line 98, in nodaemon
self.begin(False)
File "/usr/share/radio/radio_daemon.py", line 126, in begin
self.run()
File "./radiod.py", line 161, in run
self.process()
File "./radiod.py", line 255, in process
displaySource(display,radio,menu,message)
File "./radiod.py", line 938, in displaySource
message.speak(str(index+1) + ' ' + search_station[0:50])
NameError: name 'search_station' is not defined
"

message.speak(str(index+1) + ' ' + search_station[0:50])

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.