* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: TiLight  (Read 1098 times)

0 Members and 1 Guest are viewing this topic.

Offline Strontium

  • Full User
  • Join Date: Apr 2015
  • Location: CA
  • Posts: 223
  • Post Rating Ratio: +2/-2
  • hey
    • Unilunge
    • /u/thismarkstheend
    • Azmarok
    • View Profile
  • Gender: Female
TiLight
« on: April 25, 2015, 06:53:08 am »
I seem to always have my calculator with me, and have often used it to see in the dark. But I needed a better way to do this! So, I created TiLight (pronounced Tie Light).

Its very simple, but its my first real project for my calculator. The source code is included in the download.

Use the up arrow key to increase the brightness, and the down arrow key to decrease the brightness. There are also some presets in the menu.


  • Calculators owned: TI Nspire CX, HP Prime
  • Consoles, mobile devices and vintage computers owned: NES, LGv10, x220
FRC 4711 represent

Offline DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17891
  • Post Rating Ratio: +89/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: TiLight
« Reply #1 on: April 25, 2015, 07:10:51 am »
So what does this program do? Does it just change the brightness? Because we can already increase/decrease it from the TI-OS. It might be good to describe all its features so people who don't know Lua know what it does before downloading.
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Offline Snektron

  • Lvl 69 Russian Snake
  • CodeWalrus Staff
  • Super User
  • Topic Management
  • Join Date: Dec 2014
  • Location: Netherlands
  • Posts: 3151
  • Post Rating Ratio: +31/-0
  • SSSssssss.....
    • RobinDeWalvis
    • Kzyrox
    • RobinDeWalvis
    • View Profile
    • quantuminfinity
  • Gender: Male
Re: TiLight
« Reply #2 on: April 25, 2015, 07:38:11 am »
Yeah, and maybe include some screenshots too :3
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Offline Strontium

  • Full User
  • Join Date: Apr 2015
  • Location: CA
  • Posts: 223
  • Post Rating Ratio: +2/-2
  • hey
    • Unilunge
    • /u/thismarkstheend
    • Azmarok
    • View Profile
  • Gender: Female
Re: TiLight
« Reply #3 on: April 26, 2015, 01:14:00 am »
So what does this program do? Does it just change the brightness? Because we can already increase/decrease it from the TI-OS. It might be good to describe all its features so people who don't know Lua know what it does before downloading.

It allows you to control the amount of light the screen gives off. At max brightness, its just plain white. At minimum, pitch black. The reason I made it was just so that I can have a blank white screen to maximize the amount of light it gives off, as well as control the light more accurately.

Also, I wouldn't say its very useful. It was pretty much a way for me to practice Lua in a way that I would have something I could use.
  • Calculators owned: TI Nspire CX, HP Prime
  • Consoles, mobile devices and vintage computers owned: NES, LGv10, x220
FRC 4711 represent

Offline alexgt

  • Just your friendly neighborhood Ninja Stach Fancy Iron Man
  • Super User
  • Join Date: Dec 2014
  • Location: Behind you
  • Posts: 2610
  • Post Rating Ratio: +6/-1
  • Something should go here...
    • /u/alexgt9123
    • View Profile
  • Gender: Male
Re: TiLight
« Reply #4 on: April 26, 2015, 01:16:56 am »
Sounds cool but I carry my Prime in my pocket now not my Nspire :(
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Offline DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17891
  • Post Rating Ratio: +89/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: TiLight
« Reply #5 on: April 26, 2015, 04:29:24 am »
So what does this program do? Does it just change the brightness? Because we can already increase/decrease it from the TI-OS. It might be good to describe all its features so people who don't know Lua know what it does before downloading.

It allows you to control the amount of light the screen gives off. At max brightness, its just plain white. At minimum, pitch black. The reason I made it was just so that I can have a blank white screen to maximize the amount of light it gives off, as well as control the light more accurately.

Also, I wouldn't say its very useful. It was pretty much a way for me to practice Lua in a way that I would have something I could use.
Aah ok so it's like contrast changing, except that it can set the contrast much higher or lower than the TI-OS normally allows to?
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Offline LD Studios

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 136
  • Post Rating Ratio: +9/-0
    • View Profile
    • LD Studios
Re: TiLight
« Reply #6 on: April 26, 2015, 04:06:04 pm »
I'm curious as to why you made expanding black/white bars rather than just changing the rgb value of the background. Also, your help menu is pretty pointless because it's easier to just figure it out than it is to find the help menu.
EDIT: I was bored so I messed around with the code a little. The code was pretty neat+efficient, which makes me feel better about entrusting Portal NSpire with you ^.^ I made it change the rgb value of the background instead of expanding/collapsing bars. I made esc toggle help instead of just closing it, and added a strobe light. It's kind of a useless program, but whatever :P
« Last Edit: April 26, 2015, 04:28:17 pm by LD Studios »



Offline DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17891
  • Post Rating Ratio: +89/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: TiLight
« Reply #7 on: April 26, 2015, 04:33:26 pm »
Wait do you mean that the method to increase brightness he uses is displaying white bars? In such case I kinda agree with you, as the calc is more than capable to change the RGB of the screen. As for help, I would recommend making it standalone in a Notepad-compatible readme file. Many Nspire programmers have the bad habit of putting their readmes inside the .tns file and not including a .txt version. This is annoying because then we have no clue about what we are downloading and in Lua's case, it takes even longer because we always forget the keypad shortcut to switch between tabs so we have to spend 10 minutes finding the instruction manual on TI website to look up for the key combo.

That reminds me I need to make this a contest rule to include a .txt readme with the controls.
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games