π
<-

help ndless sdk

:32tins: :32tinsktpb: :32tinsktpn: :32tinscas: :32tinstpkc: :32tinstpktpb: :32tinstp: :32tinscastp: :32tinscmc: :32tinscx: :32tinscxcas:

help ndless sdk

Unread postby BackStage » 03 May 2018, 01:19

bsr a tous
je lance avec le sdk ndless

Code: Select all
# nspire-tools new test
Makefile created.


voici le code de mon test.c

Code: Select all
#include <stdio.h>
#include <stdlib.h>
#include <os.h>
int main()
{
  printf("test");
  return 0;
}


Code: Select all
# make
nspire-gcc -Wall -W -marm -Os -c test.c -o test.o
mkdir -p .
nspire-ld test.o -o test.elf
genzehn --input test.elf --output test.tns.zehn --name "test"
Warning: Using neither old (SCREEN_BASE_ADDRESS) nor new (lcd_blit) API!
Assuming '--uses-lcd-blit false'!
Warning: Your application does not appear to support 240x320px displays!
If it does, override with '--240x320-support true'.
make-prg test.tns.zehn test.tns
rm test.tns.zehn


Quand j'execute test.tns sur la calculatrice rien ne se passe
ma calculatrice est une CAS touchpad monochrome os 3.6 ndless idem

A l'aide :)
User avatar
BackStage
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Level up: 80%
 
Posts: 24
Joined: 03 Apr 2018, 01:54
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: help ndless sdk

Unread postby parrotgeek1 » 03 May 2018, 03:07

printf prints on the RS232 port of the dock connector. To show a dialog box do show_msgbox("title", "msg");

EDIT: thanks to whoever fixed my formatting lol
User avatar
parrotgeek1Programmeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 88.2%
 
Posts: 749
Joined: 29 Mar 2016, 01:22
Location: This account is no longer used.
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: help ndless sdk

Unread postby Vogtinator » 03 May 2018, 07:53

If you want to use text IO on the screen with printf, you can use "LDFLAGS = -Wl,--nspireio" in the Makefile.
User avatar
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Level up: 1.6%
 
Posts: 217
Joined: 29 Mar 2014, 15:55
Gender: Male
Calculator(s):
MyCalcs profile

Re: help ndless sdk

Unread postby Ti64CLi++ » 03 May 2018, 10:21

Oh, we can use printf as an IO function which will print directly on the screen?
I didn't know that.
It's a good news :)
Image
User avatar
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 32.5%
 
Posts: 3446
Images: 75
Joined: 04 Jul 2014, 14:40
Location: Clermont-Ferrand 63
Gender: Male
Calculator(s):
MyCalcs profile
Class: ENS Rennes
GitHub: Ti64CLi

Re: help ndless sdk

Unread postby BackStage » 04 May 2018, 02:21

parrotgeek1 and Vogtinator tanks :)
User avatar
BackStage
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Level up: 80%
 
Posts: 24
Joined: 03 Apr 2018, 01:54
Gender: Not specified
Calculator(s):
MyCalcs profile


Return to Problèmes divers / Aide débutants

Who is online

Users browsing this forum: ClaudeBot [spider] and 47 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
2202 utilisateurs:
>2194 invités
>2 membres
>6 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)