Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Vogtinator

Pages: 1 ... 11 12 [13] 14 15 ... 83
181
Calculator C / Re: How to get input from user in ndless sdk ?
« on: November 17, 2014, 04:35:53 pm »
Quote
for the GUI
I still in the start and I don't know anything of them
So I wish you recommend me anyone of them to start learn it
I need a simple gui .
Well, if text is enough you can use nspire-io to display text at specified positions and move using the cursor keys. Or if you want 2d graphics, use nSDL, nGC, n2DLib or nGL.

182
Calculator C / Re: How to get input from user in ndless sdk ?
« on: November 17, 2014, 04:03:36 pm »
Thank you for reply

Quote
Use nspire-io, directly or indirectly. The new SDK at https://github.com/ndless-nspire/Ndless has nspire-io support built-in, just look at samples/newlib.
You can use scanf, std::cin, ifstream, whatever you like.
What is the header file that i will include it will be "#include <nspire-io> ?
#include <nspireio/nspireio.h>

Quote
Quote
It waits for serial input. By default std* are the first UART.
This is my code (I still learning and test small codes)

#include <os.h>
int main() {
   printf ("!!!Hello World!!!");
   int x ;
   scanf("%d" , &x);
   printf ("The  value is : %d" , x)
   return 0;
}
What is the problem for this code (The prog not start to write an input)
Try a newline or puts instead of printf.
Quote
Quote
Forth : What is the important include that i should write before the program ? " the program contains input from user "

I mean what is the main (#include <>) that without it the app doesn't run ?
There is no such #include, although you need to #include <os.h> on the old sdk to do something useful.


Quote
Quote
Fifth and least : is there any tutorial "pdf or videos " for programming ti nspire cx cas ? can I make a GUI app ?

There is only http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction_on_Linux. You can use some graphics libs like nSDL, n2dlib or nGL or rip an existing program apart and use its GUI stuff, like pyWrite.

can you give me link contains example for GUI code ?
That depends on how you want to do GUI development, which library you use.



Quote

Thanks in advance

183
Calculator C / Re: How to get input from user in ndless sdk ?
« on: November 17, 2014, 03:19:29 pm »
Quote
Hi
I'm a new user and my calc is TI Nspire CX CAS
First: How can i write code in c++ not c ?
Use .cpp as file extension, not .c.

Quote
Second :I'm good in c++ but i can't make input from user how can i do this ?
Use nspire-io, directly or indirectly. The new SDK at https://github.com/ndless-nspire/Ndless has nspire-io support built-in, just look at samples/newlib.
You can use scanf, std::cin, ifstream, whatever you like.

Quote
Third : I write a code in c and I use "scanf()" to take input from user and when I test it on emulator , the emulator stuck what the problem ?
It waits for serial input. By default std* are the first UART.

Quote
Forth : What is the important include that i should write before the program ? " the program contains input from user "
?

Quote
Fifth and least : is there any tutorial "pdf or videos " for programming ti nspire cx cas ? can I make a GUI app ?
There is only http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction_on_Linux. You can use some graphics libs like nSDL, n2dlib or nGL or rip an existing program apart and use its GUI stuff, like pyWrite.

184
Computer Usage and Setup Help / Re: Help Testing a Laptop PSU IC
« on: November 17, 2014, 03:10:48 pm »
It's most likely a proprietary protocol that's used to communicate between PSU and battery. Without this communication, the battery will not load or give much power.
You can try to measure battery voltage while it's plugged in. Some laptops also have some settings in its BIOS.

185
TI-Nspire / Re: TI-Nspire emulator
« on: November 17, 2014, 02:39:35 pm »
Quote
It seems that I should delete my repo and start collaborating with the organization.
No, don't delete your repo, instead push upstream whenever you like to. If it's in any way a massive change, a pull request is the best way to avoid merge conflicts.
Branches on upstream work as well, but there are no pull requests for them. At least that's how it works now for ndless-nspire/Ndless and Vogtinator/Ndless.

186
TI-Nspire / Re: TI-Nspire emulator
« on: November 16, 2014, 02:33:41 pm »
You can also download every ROM you'd ever want from tiplanet.org

187
TI-Nspire / Re: TI-Nspire emulator
« on: November 16, 2014, 02:30:28 pm »
Does it work? Any bugs?

Currently I'm trying to implement some touchpad input. Clicking works already (right mouse button on LCD), but the nspire's cursor does not appear somehow if you try to move it by holding the left mouse button while moving the mouse above the LCD, nothing happens. The velocity and contact values are correctly set like it's described in the wiki, but that doesn't seem to be enough. Does anyone have a clue?

188
Computer Usage and Setup Help / Re: Help Testing a Laptop PSU IC
« on: November 16, 2014, 07:54:37 am »
The "PSU" you linked to is just a MOSFET, no logic.
I'd assume that the battery (probably its controller) is broken.

189
TI-Nspire / Re: Solarized Theme for Nspire CX
« on: November 15, 2014, 06:06:05 pm »
I have never seen a web presence for a color scheme  O.O

190
TI-Nspire / Re: Solarized Theme for Nspire CX
« on: November 15, 2014, 05:20:19 pm »
Code: [Select]
sed -i"" "/s/ /,/g" solarized.theme.tns
Edit: If you meant "csv". I don't know what "cvs" would be.

191
General Calculator Help / Re: Help downgrade nspire cx cas from 3.9
« on: November 15, 2014, 06:33:55 am »
Quote
So after dropping my calculator and having the buttons act improperly (such as the "8" key acting as the "a" key) my first instinct was to try reloading the OS. While panicking (I hoped I wouldn't have to replace my calculator), in an attempt to fix the buttons, I installed the only OS I had available (stupid me) 3.9.0.463. Which did literally nothing. However I now have the buttons under control (at least enough that I don't feel I need to worry) and would like to return to using ndless. Preferably back to the 3.1 version, as I had zero problems with my calculator before dropping it.
Well, that sounds like a contact got loose. It's probably only the keypad connector, you should be able to fix it. I don't know how to disassemble the calc, though.

Quote
So the first thing I tried was to use the downgradefix39 program, but after several attempts using this tutorial I gave up as I was unable to send files after reconnecting (ti software wouldn't recognize it as an attached calculator), failing between steps five and six.
That's a known issue, try this.

Quote
Then I saw someone say that on hardware pre-J, you should just use nLaunch. And after trying to look into that I realized I had no idea what I was doing, and didn't want to ruin my calculator.
You installed OS 3.9 so you have boot2 3.24 now. To get nLaunch, you'd need to reflash using UART. You can always reflash boot2 from nsNandMgr after you installed Ndless 3.6.


192
TI-Nspire / Re: TI-Nspire emulator
« on: November 15, 2014, 06:28:45 am »
Strange, I get an ICE trying to compile it with GCC 4.8.
Code: [Select]
../emu.c:206:8: internal compiler error: in update_ssa_across_abnormal_edges, at tree-inline.c:1853
  memset(rom, -1, 0x80000);
        ^

I'll check with the newer version of GCC on my Debian Jessie system and if it doesn't work, I'll report it.[/quote]
I compile on my openSUSE 13.2 64-bit system with
Code: [Select]
gcc version 4.8.3 20140627 [gcc-4_8-branch revision 212064] (SUSE Linux)and
Code: [Select]
clang version 3.5.0 (tags/RELEASE_350/final 216961)just fine.
I use
Code: [Select]
gcc version 4.9 20140827 (prerelease) (GCC)to compile for android and it works well.

Quote
EDIT: Also, you should add armcode_bin.h to .gitignore.
I kept it in the repo as it's a PITA on some platforms to make the header. On windows there are some $PATH issues and xxd not available and on Mac it's not possible to create a 32bit mach file from a binary.

Quote
Works for me with gcc 4.9, though it crashed clang now ("internal backend error" on linking emu.o)
Report that, I assume you use lld?

193
TI-Nspire / Re: TI-Nspire emulator
« on: November 14, 2014, 03:06:05 pm »
Same here. How much RAM do you have? Large or small NAND?
3GB RAM. Large or small NAND didn't make a big difference I think (didn't measure the time exactly).
I've got less than a tenth.. Not a surprise that it works with 132MiB NAND for you...

Quote
Quote
That's a known bug, it's just appending the serial data to the QPlainTextEdit, '\b' and '\r' are ignored, like other ANSI escape sequences for colors.
Ah ok. Well, it's not important anyway.
It's already fixed :P

194
TI-Nspire / Re: nspire Linux Questions
« on: November 14, 2014, 01:12:06 pm »
AFAIK the Ralink 20XX chipset familiy should work. I know for sure that the 2080L works, that was discussed earlier in this thread.

(1000th post yay :D)

195
TI-Nspire / Re: How to install Debian on a TI-Nspire CX
« on: November 14, 2014, 10:27:55 am »
Shorting the power lines shouldn't be a big issue, the nspire has current limiting built-in.

Pages: 1 ... 11 12 [13] 14 15 ... 83