Author Topic: The TI-Nspire FlashLight  (Read 6780 times)

0 Members and 1 Guest are viewing this topic.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
The TI-Nspire FlashLight
« on: September 24, 2011, 02:48:20 pm »
13 years ago, TI introduced the Flash technology with the TI-73/83+/89/92+.

Today, Levak has introduced the FlashLight technology with the TI-Nspire! :P




For more photos/infos:
http://tiplanet.org/forum/viewtopic.php?f=43&t=8247&p=116507#p116503
« Last Edit: September 24, 2011, 02:48:54 pm by critor »
TI-Planet co-admin.

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: The TI-Nspire FlashLight
« Reply #1 on: September 24, 2011, 02:49:26 pm »
Lol. Does the CX have a backlight?

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: The TI-Nspire FlashLight
« Reply #2 on: September 24, 2011, 02:50:37 pm »
Lol. Does the CX have a backlight?

Yes =)
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: The TI-Nspire FlashLight
« Reply #3 on: September 24, 2011, 02:51:19 pm »
Awesome. Just plain awesome. :thumbsup:

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: The TI-Nspire FlashLight
« Reply #4 on: September 24, 2011, 02:54:50 pm »
Lol. Does the CX have a backlight?

Yes =)
Then it can be used for a flashlight like the flashlight apps for smartphones. Is the brightness adjustable?

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: The TI-Nspire FlashLight
« Reply #5 on: September 24, 2011, 02:57:47 pm »
Lol. Does the CX have a backlight?

Yes =)
Then it can be used for a flashlight like the flashlight apps for smartphones. Is the brightness adjustable?

Also Yes, but not as flash as this LED...
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: The TI-Nspire FlashLight
« Reply #6 on: September 24, 2011, 03:42:31 pm »
Spoiler For img:
0.o
What's next, a light saber?

lols..
Vy'o'us pleorsdti thl'e gjaemue

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: The TI-Nspire FlashLight
« Reply #7 on: September 24, 2011, 04:00:21 pm »
Haha nice hack :D

Can you turn it on and off with a (pre-OS 3.1) Lua program?

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: The TI-Nspire FlashLight
« Reply #8 on: September 24, 2011, 05:17:59 pm »
Very cool!

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: The TI-Nspire FlashLight
« Reply #9 on: September 24, 2011, 05:29:55 pm »
I can control its brightness but I can't go under 0.48V and upper to 2.18V on CX =/
I manage to make a PWM to toggle the light on/off smoothly

Source Code:
Code: [Select]
-- PWM system by Levak 2011
time.start(0.01)
i=1 d=1 w=20

function on.create() time.start(0.01) end

function on.paint(gc)
  gc:drawString("luminosity : "..(i/w*100).."%", 0, 0, "top")
  gc:drawString("step (up/down: "..math.abs(d), 0, 20, "top")
  gc:drawString("width (+/-): "..w, 0, 40, "top")
end

function on.timer()
  print(string.rep(string.rep("\001", i)..string.rep("\127", w-i), 100))
  if i < 1 or i > w then d = -d end
  i = i + d
  platform.window:invalidate()
end

function on.arrowKey(key)
  if key == "down" then d = d - (d < 0 and -1 or 1)
  elseif key == "up" then d = d + (d < 0 and -1 or 1)
  end
  platform.window:invalidate()
end

function on.charIn(ch)
  if ch == "+" then w = w + 1
  elseif ch == "-" then w = w - 1
  end
  platform.window:invalidate()
end
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua