Omnimaga

Calculator Community => Other Calculators => Topic started by: critor on September 24, 2011, 02:48:20 pm

Title: The TI-Nspire FlashLight
Post by: critor 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

(http://tiplanet.org/images/CIMG7748.JPG)


For more photos/infos:
http://tiplanet.org/forum/viewtopic.php?f=43&t=8247&p=116507#p116503
Title: Re: The TI-Nspire FlashLight
Post by: fb39ca4 on September 24, 2011, 02:49:26 pm
Lol. Does the CX have a backlight?
Title: Re: The TI-Nspire FlashLight
Post by: Levak on September 24, 2011, 02:50:37 pm
Lol. Does the CX have a backlight?

Yes =)
Title: Re: The TI-Nspire FlashLight
Post by: mrmprog on September 24, 2011, 02:51:19 pm
Awesome. Just plain awesome. :thumbsup:
Title: Re: The TI-Nspire FlashLight
Post by: fb39ca4 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?
Title: Re: The TI-Nspire FlashLight
Post by: Levak 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...
Title: Re: The TI-Nspire FlashLight
Post by: Darl181 on September 24, 2011, 03:42:31 pm
Spoiler For img:
(http://tiplanet.org/images/CIMG7754.JPG)
0.o
What's next, a light saber?

lols..
Title: Re: The TI-Nspire FlashLight
Post by: Juju 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?
Title: Re: The TI-Nspire FlashLight
Post by: Jim Bauwens on September 24, 2011, 05:17:59 pm
Very cool!
Title: Re: The TI-Nspire FlashLight
Post by: Levak 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