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 - Jim Bauwens

Pages: 1 ... 52 53 [54] 55 56 ... 125
796
News / Re: Several members' post counts re-synced
« on: February 06, 2012, 02:54:04 am »
Nice :)
I'm also starting to wish I made an account back then (to beat Adriweb) :P

797
News / Re: The TI-Phoenix 1, watch it booting!
« on: February 05, 2012, 03:15:02 pm »
Very nice critor :)

798
News / Re: Ndless 3.1 adds support for file associations
« on: February 05, 2012, 03:08:10 pm »
Very nice :)

799
TI-Nspire / Re: nJava - Nspire JVM
« on: February 04, 2012, 02:56:56 pm »
After all, that lua interpreter was written by TI. If anything it would be worse than the standard implementation, making it a wider gap.
The interpreter itself is not written by TI, they just added some modules and made it event based (Not hard to do that at all).
They implemented it as many other games/programs do.

800
Grammer / Re: Grammer Animations
« on: February 03, 2012, 09:18:12 am »
I love the Sierpinski triangles :3

801
Computer Usage and Setup Help / Re: ubuntu installation gone wrong
« on: February 03, 2012, 04:06:36 am »
I think, he wants the bootloader only to be on /dev/sdb1.
This is not so hard to do, but you will first need to restore the MBR of windows (with the advice of the people above).
Then, just go install Ubuntu like you did before. During the installation there will be somewhere button named "Advanced" or "Bootloader options" (I don't remember exactly).
When you click on it you should see two checkboxes (bot selected) with the labels /dev/sda and /dev/sdb. Deselect /dev/sda. Continue your install.
Now the bootloader should only be on /dev/sdb.

802
Casio Calculators / MOVED: [Prizm] Tetrizm v1.0
« on: February 02, 2012, 11:44:05 am »
This topic has been moved to News.

http://ourl.ca/15093

803
Other Calculators / Re: How did you attach the rs232 wires?
« on: February 02, 2012, 10:57:15 am »
You could do that too, instead of sending 0's. (Probably better quality)
I forgot you were in C :P

804
Other Calculators / Re: How did you attach the rs232 wires?
« on: February 02, 2012, 04:24:09 am »
Try not to focus on how the speaker works, but on sound.
Sound is a waveform, with different frequencies and some other stuff.
Our goal is to simulate a wave by output 1's and 0's since this will make the speaker move and create the wave.
But since we only got 1 and 0 we can not have a perfect smooth wave and won't have uber quality sound.
But you will have sound :)

What you need to focus on is creating the wave. You will need to know some details of the serial port in order to be able to create the frequencies you want.
The serial speed is 115200 baud, which is changes/sec. Its like bits/s, but not really.

So, how do we create our wave with 'x' Hz and playing 't' long?
First of all you need to know that Hz is cycles/second. To put this simple that means 500ms of 0's and 500ms of 1's.
Now lets first calculate how many bits we need to send to create one wave of 'x' Hz.
115200/x
That means we need 57600/x bits of 0 and 57600/x bits of 1.
Lets create some pseudo code for that
Code: [Select]
function wave(x){
  am = 57600/x;
  sendBits(0, am);
  sendBits(1, am);
}
Imagine that sendBits(bit, amount) sends 'bit' 'amount' times to the port.


Now, this is only one wave. To play it 't' long we need to repeat it x*t times
Code: [Select]
function wave(x, t){
  am = 57600/x;
  for (i=0; i<x*t;i++){
    sendBits(0, am);
    sendBits(1, am);
  }
}

But, actually we only can send bytes to the serial port.
Now its important to know that 1 byte is actually 10 because of some extra flag bits in the protocol.
Lets change the code for bytes
Code: [Select]
function wave(x, t){
  am = (57600/x)/10;
  for (i=0; i<x*t;i++){
    sendBytes(\x00, am);
    sendBytes(\xFF, am);
  }
}
I use \x00 as 0 and \xFF as 1.
Now, this should be enough to understand it (I hope) :D

805
nSDL / Re: SDL for the TI-Nspire
« on: February 01, 2012, 08:12:58 am »
Indeed, very nice :)

806
Lua / Re: Error: Attempt to index local 'gc' (a nil value)
« on: February 01, 2012, 08:10:46 am »
Okay, first little comment about some code :D
Instead of
Code: [Select]
if something then
  --code
end

if not something then
  --code
end
Its better to do
Code: [Select]
if something then
  --code
else
  --code
end


Now, your menu does get triggered when you press '1', but you don't invalidate the screen so it doesn't get drawn. Pressing the category button will trigger this, so only then you see the menu.
To solve this you need to add platform.window:invalidate() to your code (in on.charIn for example). This sets a flag which will make that the screen gets redrawn.

Hope this helps ;D

807
TI-Nspire / Re: Rush Hour
« on: February 01, 2012, 02:23:16 am »
Oh I forgot, here are the pictures.
You still need to rotate some of them 90 degrees.

808
TI-Nspire / Re: nJava - Nspire JVM
« on: February 01, 2012, 02:21:05 am »
I think the point is that its very badly documented, making it much harder to do something with it :)

809
TI-Nspire / Re: nJava - Nspire JVM
« on: February 01, 2012, 02:17:47 am »
Maybe you should take a look at Java ME (phoneME). Its specifically made for (simple) mobile phones, so I assume it will have a lighter footprint.
There are a ton of games that work on it, and its open source :)

810
Other Calculators / Re: How did you attach the rs232 wires?
« on: January 31, 2012, 03:04:45 pm »
Sadly enough not. But you could easily do it with C (Ndless).
I think you could get better quality too :)

Pages: 1 ... 52 53 [54] 55 56 ... 125