0 Members and 2 Guests are viewing this topic.
Quote from: calcdude84se on January 22, 2014, 09:47:57 pmQuote from: hking1 on January 22, 2014, 09:41:48 pmnote this does not work for nspire series so technically not all ti calculatorsWhile we're being technical, it should work for the 84+SE emulator that's on some Nspires . (Though you could argue it's not an Nspire anymore )however i am having trouble getting a rom for 84 se since wabbitemu for mac does not provide the rom automaticallyif u can tell me a way that would be awesome
Quote from: hking1 on January 22, 2014, 09:41:48 pmnote this does not work for nspire series so technically not all ti calculatorsWhile we're being technical, it should work for the 84+SE emulator that's on some Nspires . (Though you could argue it's not an Nspire anymore )
note this does not work for nspire series so technically not all ti calculators
ClrHome5 -> A //length of Hour hand (in pixels), you may adjust these numbers if you want7 -> B //length of Minute Hand25 -> C //length of Seconds Hands DelVar DDelVar EDelVar IDelVar JDelVar NDelVar ODelVar ZCircle(48,32,C+1) //setting up the circle encompass your second hand + 1 pixelwhile(getKey != 45) //press CLEAR to stop programgetTime -> L1 //puts the time in a list, L1(1) holds hour, L1(2) holds Minutes, L1(3) holds Seconds L1(3) -> SLine(48+D*B,32+E*B,48+D*C,32+E*C,0) //The second hand would erase the Hour and Minute hands if ever ontop of themcos(S*6)->E // And i didnt want to update everything everytimesin(S*6)->D //So i just made my Seconds Hand exist starting from the endpoint of Minutes Hand Line(48+D*B,32+E*B,48+D*C,32+E*C) if(S = 0 or Z = 0) //Only update when Seconds reaches zero Then L1(2) -> M //Minute Hand Line(48,32,48+I*B,32+J*B,0) cos(M*6)->J //Calculating Position. I,J I being my X-coordinate and J being Y-coordinate sin(M*6)->I Line(48,32,48+I*B,32+J*B) L1(1) -> H //Hour Hand Line(48,32,48+N*A,32+O*A,0) cos(H*15)->O //Calculating Position (24 hour assumed) N being X, O being Y sin(H*15)->N Line(48,32,48+N*A,32+O*A) 1->Z //Variable so Minute and Hour are updated upon start-up EndEnd
:ClrHome:Lbl 1:For(X,3,16):Output(4,X,"<what ever you want>:For(Y,5,20):Output(7,Y,getTime:Goto 1:ClrHomeThe code makes a loop that updates every time the getTime is displayed,this only shows for about 20-30 seconds and to exit it press the on button.