|
|
2009-03-22
, 17:08
|
|
Posts: 1,213 |
Thanked: 356 times |
Joined on Jan 2008
@ California and Virginia
|
#12
|
|
|
2009-03-22
, 20:14
|
|
|
Posts: 315 |
Thanked: 71 times |
Joined on Oct 2008
@ €@$T Montreal Quebec Canada
|
#13
|
N95 + N810|
|
2009-03-22
, 23:06
|
|
|
Posts: 334 |
Thanked: 366 times |
Joined on Nov 2008
@ Italy
|
#14
|
Ciroip, I felt the LED control was the coolest part of FlipClock, as no other app takes advantage of it.
What I want to see is a rave app, that syncs the screen color with the LED, and throbs different colors to the beat of the music... hehehehehe....
|
|
2009-03-23
, 02:17
|
|
|
Posts: 480 |
Thanked: 378 times |
Joined on Apr 2008
@ Chicago-ish
|
#15
|
ok so here...is what i keep now for possibly make a little simple application for this data sheet...
any others ideas be appreciate...
this is default setting for now :
-Device start-up
-Device shutdown
-Web camera On
-Charging battery
-Battery fully charged
-New e-mail message received
-New instant message received
-Chat invitation
-Missed call
-Authorization request
-Device On
-----------To added------------------------------------
-Phone call
-RSS Feed
-Download finish
-Disco Music (LED pattern for music bpm)
Any others functions can be add too here...

|
|
2009-03-24
, 05:58
|
|
|
Posts: 315 |
Thanked: 71 times |
Joined on Oct 2008
@ €@$T Montreal Quebec Canada
|
#16
|
#!/usr/bin/env python
### proof of concept for the N810 LED control (ld5521) by jott
import pygtk
import hildon
pygtk.require('2.0')
import gtk
class LEDColor:
def set_color_callback(self, widget, data=None, value=None):
self.set_color(self.sliders[0].get_level(), self.sliders[1].get_level(), self.sliders[2].get_level())
def set_color(self,r,g,b):
self.set_mode("direct")
value = "%X:%X:%X" % (r,g,b)
FILE = open("/sys/devices/platform/i2c_omap.2/i2c-0/0-0032/color","w")
FILE.write(value)
FILE.close()
def set_mode(self,mode):
FILE = open("/sys/devices/platform/i2c_omap.2/i2c-0/0-0032/mode","w")
FILE.write(mode)
FILE.close()
def delete_event(self, widget, event, data=None):
return False
def destroy(self, widget, data=None):
self.set_mode("run")
gtk.main_quit()
def __init__(self):
self.set_color(0,0,0)
window = gtk.Window(gtk.WINDOW_TOPLEVEL)
window.connect("delete_event", self.delete_event)
window.connect("destroy", self.destroy)
window.set_border_width(10)
content = gtk.VBox()
self.sliders = []
for i in range(0,3):
slider = hildon.HVolumebar()
adj = slider.get_adjustment()
adj.set_all(0, 0, 255, 1, 10)
content.pack_start(slider, True, True, 0)
slider.set_property("has_mute",False)
slider.show()
self.sliders.append(slider)
for i in range(0,3):
self.sliders[i].connect("level_changed", self.set_color_callback, None)
window.add(content)
content.show()
window.show()
def main(self):
gtk.main()
if __name__ == "__main__":
led = LEDColor()
led.main()
N95 + N810|
|
2009-03-24
, 20:19
|
|
|
Posts: 315 |
Thanked: 71 times |
Joined on Oct 2008
@ €@$T Montreal Quebec Canada
|
#17
|
Code:#!/usr/bin/env python ### proof of concept for the N810 LED control (ld5521) by jott import pygtk import hildon pygtk.require('2.0') import gtk class LEDColor: def set_color_callback(self, widget, data=None, value=None): self.set_color(self.sliders[0].get_level(), self.sliders[1].get_level(), self.sliders[2].get_level()) def set_color(self,r,g,b): self.set_mode("direct") value = "%X:%X:%X" % (r,g,b) FILE = open("/sys/devices/platform/i2c_omap.2/i2c-0/0-0032/color","w") FILE.write(value) FILE.close() def set_mode(self,mode): FILE = open("/sys/devices/platform/i2c_omap.2/i2c-0/0-0032/mode","w") FILE.write(mode) FILE.close() def delete_event(self, widget, event, data=None): return False def destroy(self, widget, data=None): self.set_mode("run") gtk.main_quit() def __init__(self): self.set_color(0,0,0) window = gtk.Window(gtk.WINDOW_TOPLEVEL) window.connect("delete_event", self.delete_event) window.connect("destroy", self.destroy) window.set_border_width(10) content = gtk.VBox() self.sliders = [] for i in range(0,3): slider = hildon.HVolumebar() adj = slider.get_adjustment() adj.set_all(0, 0, 255, 1, 10) content.pack_start(slider, True, True, 0) slider.set_property("has_mute",False) slider.show() self.sliders.append(slider) for i in range(0,3): self.sliders[i].connect("level_changed", self.set_color_callback, None) window.add(content) content.show() window.show() def main(self): gtk.main() if __name__ == "__main__": led = LEDColor() led.main()
i know nothing about coding lol
N95 + N810|
|
2009-03-24
, 20:25
|
|
|
Posts: 480 |
Thanked: 378 times |
Joined on Apr 2008
@ Chicago-ish
|
#18
|
python (filename)

|
|
2009-03-24
, 22:26
|
|
|
Posts: 334 |
Thanked: 366 times |
Joined on Nov 2008
@ Italy
|
#19
|
|
|
2009-06-14
, 15:08
|
|
|
Posts: 315 |
Thanked: 71 times |
Joined on Oct 2008
@ €@$T Montreal Quebec Canada
|
#20
|
PatternError=0;1;0;40002000200040ff200020000000;0000;0000
N95 + N810![]() |
| Tags |
| led ligth |
| Thread Tools | |
|
Flip Alarm Clock - 3DMania Theme - Synesthesia - Deluxepain
http://ciroip.blogspot.com/
http://twitter.com/ciroippolito
Last edited by ciroip; 2009-03-22 at 15:58.