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 - shrear
Pages: 1 ... 10 11 [12] 13 14
166
« on: December 27, 2010, 12:12:43 pm »
(*(volatile unsigned*)0xA4005200) = 0xFFFFFFFF; (*(volatile unsigned char*)0xA4005206) = 0xFF; do nothing
just to be safe
(*(volatile unsigned*)b) = a;
puts the value a into the address "b" or?
167
« on: December 27, 2010, 11:21:44 am »
320/2=160... what was I thinking... but there has to be another error. *shrear tries to find the error* *wonders why (*(volatile unsigned*)0xA4005200) = 0xFF ; (*(volatile unsigned*)0xA4005201) = 0xFF ; (*(volatile unsigned*)0xA4005202) = 0xFF ; (*(volatile unsigned*)0xA4005203) = 0xFF ; (*(volatile unsigned*)0xA4005204) = 0xFF ; (*(volatile unsigned*)0xA4005205) = 0xFF ; (*(volatile unsigned*)0xA4005206) = 0xFF ; a)works b)causes a reboot.*
168
« on: December 27, 2010, 10:34:03 am »
So I tried writing a program without writing of half the code. Result: nothing happens, not even a crash Can someone tell me where my stupid beginner error is? Here is the code: #include <os.h>
//addresses #define SCREEN_ADDRESS 0xA4000100 ;
//prototyps void set_screen (void) ; void set_value(int address, unsigned int value) ; void clear_screen(void) ;
//global variables int screen_cords[240][180] ;
int main(void) {
set_screen() ; clear_screen() ; while ( !isKeyPressed ( KEY_NSPIRE_ESC) ) { set_value( screen_cords[100][100] , 0x00 ) ; set_value( screen_cords[100][101] , 0x00 ) ; set_value( screen_cords[100][102] , 0x00 ) ; set_value( screen_cords[101][100] , 0x00 ) ; set_value( screen_cords[101][101] , 0x00 ) ; set_value( screen_cords[101][102] , 0x00 ) ; set_value( screen_cords[102][100] , 0x0F ) ; set_value( screen_cords[102][101] , 0xFF ) ; set_value( screen_cords[102][102] , 0x00 ) ; set_value( screen_cords[103][100] , 0xF0 ) ; set_value( screen_cords[103][101] , 0x00 ) ; set_value( screen_cords[103][102] , 0xF0 ) ; set_value( screen_cords[104][100] , 0xF0 ) ; set_value( screen_cords[104][101] , 0x00 ) ; set_value( screen_cords[104][102] , 0xF0 ) ; set_value( screen_cords[105][100] , 0xFF ) ; set_value( screen_cords[105][101] , 0xFF ) ; set_value( screen_cords[105][102] , 0xF0 ) ; set_value( screen_cords[106][100] , 0xF0 ) ; set_value( screen_cords[106][101] , 0x00 ) ; set_value( screen_cords[106][102] , 0xF0 ) ; set_value( screen_cords[107][100] , 0xF0 ) ; set_value( screen_cords[107][101] , 0x00 ) ; set_value( screen_cords[107][102] , 0xF0 ) ; set_value( screen_cords[108][100] , 0xF0 ) ; set_value( screen_cords[108][101] , 0x00 ) ; set_value( screen_cords[108][102] , 0xF0 ) ; set_value( screen_cords[110][100] , 0xFF ) ; set_value( screen_cords[110][101] , 0xFF ) ; set_value( screen_cords[110][102] , 0xFF ) ; } return 0;
}
void set_screen(void) {
int ycordinate, xcordinate ; int screen_address = SCREEN_ADDRESS ; for ( ycordinate = 1 ; ycordinate == 240 ; ycordinate++ ) { for ( xcordinate = 1 ; xcordinate == 180 ; xcordinate++ ) { screen_cords[ycordinate][xcordinate] = (screen_address + (xcordinate-1) + (ycordinate-1)*180) ; } }
}
void set_value(int address, unsigned int value) {
(*(volatile unsigned*)address) = value ;
}
void clear_screen(void) {
int ycordinate, xcordinate ; for ( ycordinate = 1 ; ycordinate == 240 ; ycordinate++ ) { for ( xcordinate = 1 ; xcordinate == 180 ; xcordinate++ ) { set_value(screen_cords[ycordinate][xcordinate] , 0x00 ) ; } }
}
170
« on: December 26, 2010, 01:44:49 pm »
Try this work around in an Ndless program: Ctrl-8 UP Ctrl-4 LEFT Ctrl-6 RIGHT Ctrl-2 DOWN
I chose these keys because it should be easy to remember and use.
I confirm, mapping the keys to the numbers works fine.
171
« on: December 26, 2010, 10:57:54 am »
Believe me, I also needed a lot of time to get behind that...
And actually it's written one the first page...
172
« on: December 25, 2010, 03:17:04 pm »
Tried installing the build from page 7 on my Nspire, but without success. After 50 popups of "format not supported" errors and reboots, I gave up. I made sure not to have any special characters in folder names, and even tried with the calc plugged and unplugged into the PC, without results. Am I missing something?
Info: Nspire non-CAS Touchpad OS 2.0.1 (modified version with TNOC without boot2 and examples - maybe this is the problem?) Old HW version (no power bug on OS 1.1)
The pop-up that this file format is not supported doesn't necessary mean that Ndless didn't install, try out particles , there is a big chance that it works.
173
« on: December 24, 2010, 04:20:30 pm »
No, doesn't help... Arrowkeys+on still do not react
but the clock on the screen seems to reacts on the touchpat, wtf...
174
« on: December 24, 2010, 01:58:59 pm »
Ask this ExtendeD, not me...
but if you wait a few seconds I may post an "alternative" header-file.
EDIT: added one, but if you use this one keys will be scrambled on a Clickpat, also arrow-keys and on do not work( at least for me)
(ExtendeD I hope you don't mind?)
175
« on: December 24, 2010, 10:31:31 am »
I'm guessing different addresses/layout need to be found for CAS Touchpad.
They are already fund and as far as I understand also implemented in "common.h" but it seem not to work for us I get the all keys (except on/home + arrow-keys) right by modifying that header but the tns' build so would then have their keys scrambled with a Cklickpad...
176
« on: December 24, 2010, 04:44:45 am »
Question to those who tested with touch-pad: are your keys NOT scrambled like +=w -=q ?
177
« on: December 23, 2010, 03:02:53 pm »
Nice! definitely a fine program Single issue I can say is the text size, if I had to read a whole page my eyes would really start to hurt...
178
« on: December 23, 2010, 01:03:38 pm »
Well I tested it on OS 2.0 and boot2 1.4 but there is not much to say as it acts like you described it for 1.7 the reboot happens around 1 out of 4 times. Now then, I'm waiting for the full version
179
« on: December 23, 2010, 08:17:27 am »
I suspect a build issue, so I'm sharing my binaries. Did you fully rebuild Ndless with "make clean all" at the root? Also did you rebuild BlockDude?
Yes I did The executables of blockdude created with your version and the one with my build are identical But the Ndless installers are not so I tried it with both installers -arrow keys do not work with both... Ndless resource are identical
180
« on: December 23, 2010, 07:20:02 am »
Blockdude and I already use version 348 I compared the "common.h"s they are identical. Would you have better luck with this build?
I couldn't use that build in a touchpad (if that's the same one I used, since the version name is the same)
Ndless as such works fine for me with this version
Pages: 1 ... 10 11 [12] 13 14
|