Page 1 of 1
[NXC] Drawing options
Posted: 13 Oct 2011, 16:23
by xdfbeini
Hi,
Trying to run code like
Code: Select all
task main()
{
RectOut(0, 0, 100, 64, DRAW_OPT_FILL_SHAPE);
}
but it only draws a regular non-filled rectangle. I have also tried using other options like DRAW_OPT_CLEAR etc. but none of them seem to work.
The NXT is running 1.05 firmware (no possibility of updating). I didn't see any mentions that these would require the enhanced firmware, but is this the case?
Re: [NXC] Drawing options
Posted: 13 Oct 2011, 17:16
by mattallen37
I run enhanced FW, and I have never had that problem. Why is it impossible to upgrade the FW?
Re: [NXC] Drawing options
Posted: 13 Oct 2011, 17:34
by spillerrec
Almost all drawing options are Enhanced Firmware only. I think "DRAW_OPT_CLEAR_WHOLE_SCREEN" and "DRAW_OPT_CLEAR_EXCEPT_STATUS_SCREEN" works with the standard firmware, but I'm not sure.
Re: [NXC] Drawing options
Posted: 13 Oct 2011, 17:46
by xdfbeini
spillerrec wrote:Almost all drawing options are Enhanced Firmware only. I think "DRAW_OPT_CLEAR_WHOLE_SCREEN" and "DRAW_OPT_CLEAR_EXCEPT_STATUS_SCREEN" works with the standard firmware, but I'm not sure.
Thanks, this was the answer I was looking for. Just didn't see any warnings when reading the API like it has under functions which are not compatible with the standard FW.
I run enhanced FW, and I have never had that problem. Why is it impossible to upgrade the FW?
We just don't have the rights to do so as students. And our team is just more comfortable using NXC vs. NXT-G, that's why we are using it on standard FW. We might get the chance later on when we have bigger projects.
Re: [NXC] Drawing options
Posted: 13 Oct 2011, 20:32
by mattallen37
xdfbeini wrote:...our team is just more comfortable using NXC vs. NXT-G, that's why we are using it on standard FW...
EFW (enhanced firmware)
is for NXC. In fact, I don't know that NXT-G would even benefit from using EFW. If your team prefers NXC, then by all means I suggest you upgrade the FW on all the bricks.
Re: [NXC] Drawing options
Posted: 13 Oct 2011, 20:37
by mightor
Well, the benefit of using EFW with NXT-G is that some bugs are fixed. The extra functionality is inaccessible, though.
- Xander
Re: [NXC] Drawing options
Posted: 15 Oct 2011, 02:46
by timpattinson
mightor wrote:The extra functionality is inaccessible, though.
- Xander
Extra RS-485 speeds?
Re: [NXC] Drawing options
Posted: 15 Oct 2011, 12:20
by spillerrec
There are a lot of extra functions in the Enhanced Firmware when you are using it together with NXC. Not just the extra drawing options (and commands), but also extra mathematics like cos() and sin() and much much more.
However at least updating to the current standard firmware would be a good idea. The 1.2x firmware gave a great boost in speed even for old programs, so there is not much point in not updating it.
If you try to talk to your teachers about it I don't think it will be that hard to get permission though.