Go to advanced search

by britguy
Mon Jun 11, 2012 12:00 am
Forum: Other programming languages
Topic: Mono (C#) anyone?
Replies: 64
Views: 46007

Re: Mono (C#) anyone?

Hi x4m. Thanks for the adding the input code. I am a little confused about how you read a particular pin... Would I modify your code to do something like this? (where g is an int representing the pin number), and it returns a bool. public static bool GPIO_IN0 { get { return ( *(gpio + 13) & (1 << g)...
by kdakin
Sun Jun 10, 2012 4:07 pm
Forum: Other programming languages
Topic: Assembly Code
Replies: 60
Views: 21550

Re: Assembly Code

See also the post under Other Languages re: Mono (C#) and IBM/390 Assembler Language.
http://www.raspberrypi.org/phpBB3/viewt ... =34&t=8037
by kdakin
Sun Jun 10, 2012 3:43 pm
Forum: Other programming languages
Topic: Mono (C#) and IBM, S/390 Assembler
Replies: 3
Views: 3823

Mono (C#) and IBM, S/390 Assembler

Hello, I have produced an IBM S/390 emulator in C# that should also run "happily" under Mono on the Raspberry Pi (it uses 100% compatible CIL intermediate object code) . It is known as " PI_ZZA ". There are some temporary restrictions, but the emulator will execute ...
by x4m
Sun Jun 10, 2012 8:06 am
Forum: Other programming languages
Topic: Mono (C#) anyone?
Replies: 64
Views: 46007

Re: Mono (C#) anyone?

Hello, britguy! Thank you for testing. About input. I've updated code un dropbox link above to support input. All updates are: public static uint GPIO_IN0 { get { return *(gpio + 13); } } in class IO. I think we really should start repository on C# IO for RPi, and place there both, FileGPIO and memo...
by obijywk
Sun Jun 10, 2012 4:33 am
Forum: Other programming languages
Topic: Mono: Cairo not using hardware acceleration
Replies: 4
Views: 4220

Re: Mono: Cairo not using hardware acceleration

When I was experimenting with cairo on Raspberry Pi (outside of X) I found the OpenGL ES backend to be slow (due to software rendering I suspect), and the OpenVG backend to be really incomplete and buggy (although definitely hardware-accelerated and quite fast). See my thread about this: http://www....
by andyl
Sat Jun 09, 2012 8:13 pm
Forum: Other programming languages
Topic: Mono: Cairo not using hardware acceleration
Replies: 4
Views: 4220

Re: Mono: Cairo not using hardware acceleration

If it is any consolation it is every language not just the mono languages AND it is general performance inside X (there are loads of people complaining). I am sure that it will be pretty obvious when announced on the forums and I would put money on it ...
by JohnStabler
Sat Jun 09, 2012 6:25 pm
Forum: Other programming languages
Topic: Mono: Cairo not using hardware acceleration
Replies: 4
Views: 4220

Re: Mono: Cairo not using hardware acceleration

That's a real shame because there's a lot of potential for 2D graphical applications. The Mono applications I've been testing have worked very well apart from the graphics. I guess I'll just have to develop for other platforms and check back regularly.

Thanks.
by andyl
Sat Jun 09, 2012 6:12 pm
Forum: Other programming languages
Topic: Mono: Cairo not using hardware acceleration
Replies: 4
Views: 4220

Re: Mono: Cairo not using hardware acceleration

Yep, hardware acceleration is being worked on for X. Once it has been finished and your system has been upgraded you should see an improvement. Unfortunately there is no ETA.
by JohnStabler
Sat Jun 09, 2012 4:38 pm
Forum: Other programming languages
Topic: Mono: Cairo not using hardware acceleration
Replies: 4
Views: 4220

Mono: Cairo not using hardware acceleration

I've built a simple graphics project in mono and tried executing it. Even drawing a few simple shapes is achingly slow. I've been analysing the performance of the code and Mono is lightning fast, it's the drawing operations that are killing the ...
by britguy
Sat Jun 09, 2012 4:27 pm
Forum: Other programming languages
Topic: Mono (C#) anyone?
Replies: 64
Views: 46007

Re: Mono (C#) anyone?

... to wire up a switch and resistors accordingly published next version at https://dl.dropbox.com/u/7610280/GpioProgram.cs Well, it compiles, runs on mono, finds dll (libc.so.6), outputs like everything is ok. But I've no multimiter or something like that to measure voltage on output pins. Can anyone ...
by x4m
Sat Jun 09, 2012 5:30 am
Forum: Other programming languages
Topic: Mono (C#) anyone?
Replies: 64
Views: 46007

Re: Mono (C#) anyone?

Probably libc.so.6 is part of any Linux.

Accourding to documents
[DllImport("c")]
[DllImport("libc")]
[DllImport("libc.so")]
[DllImport("libc.so.6")]
Should be equal, but on my debian it works only with last... and I do not know why.
by britguy
Sat Jun 09, 2012 4:13 am
Forum: Other programming languages
Topic: Mono (C#) anyone?
Replies: 64
Views: 46007

Re: Mono (C#) anyone?

That's great! I will test it. I have a multimeter and some leds . Do I need those Dlls installed, or are they part of archlinux?
by x4m
Fri Jun 08, 2012 5:24 pm
Forum: Other programming languages
Topic: Mono (C#) anyone?
Replies: 64
Views: 46007

Re: Mono (C#) anyone?

published next version at https://dl.dropbox.com/u/7610280/GpioProgram.cs Well, it compiles, runs on mono, finds dll (libc.so.6), outputs like everything is ok. But I've no multimiter or something like that to measure voltage on output pins. Can anyone say, does that program ...
by Augmental_UK
Fri Jun 08, 2012 11:34 am
Forum: Automation, sensing and robotics
Topic: GPIO on Mono / C#
Replies: 2
Views: 18903

Re: GPIO on Mono / C#

Great! I am also interested in interfacing GPIO from the Mono Runtime. Thanks very much for sharing this effort.
by britguy
Fri Jun 08, 2012 2:21 am
Forum: Other programming languages
Topic: Mono (C#) anyone?
Replies: 64
Views: 46007

Re: Mono (C#) anyone?

Good point! I think static is the way to go. My code is a little rough round the edges! Thanks for the input!
godFather89 wrote:Just a note: FileGPIO should be implemented as static class or a singleton because there is no need to make multiple instances to read/write from/to a I/O pin.
by britguy
Fri Jun 08, 2012 2:16 am
Forum: Other programming languages
Topic: Mono (C#) anyone?
Replies: 64
Views: 46007

Re: Mono (C#) anyone?

... archive file, and there is a malloc.c file in there, I will do more research and see what I can dig up? Once more thx to godFather89. Installed mono runtime, tried to run monodevelop...well RPi is not enough fast (: Also tried to run gpio ported program and encountereg with absance of "libc.so"... ...
by britguy
Fri Jun 08, 2012 1:46 am
Forum: Other programming languages
Topic: Mono (C#) anyone?
Replies: 64
Views: 46007

Re: Mono (C#) anyone?

... its a code editor? If so, then yes you can use that on the Pi if you end up with .cs source files you can compile. 2. You just need to install the mono package and it should bring in all its dependencies. I dont know how to do this on Debian (shouldnt be too hard), but on ArchLinux, I just did ...
by ChrisSwan
Thu Jun 07, 2012 6:35 pm
Forum: Other projects
Topic: MonoGame on Raspberry Pi...
Replies: 43
Views: 12417

Re: MonoGame on Raspberry Pi...

... (default targets) -> (Build target) -> /home/pi/MonoGame-2.5.0.0/MonoGame.Framework/MonoGame.Framework.Linux.csproj (default targets) -> /usr/lib/mono/4.0/Microsoft.CSharp.targets (CoreCompile target) -> Linux/Graphics/Effect/EffectPass.cs(58,36): error CS1502: The best overloaded method match ...
by x4m
Thu Jun 07, 2012 5:10 pm
Forum: Other programming languages
Topic: Mono (C#) anyone?
Replies: 64
Views: 46007

Re: Mono (C#) anyone?

Once more thx to godFather89.
Installed mono runtime, tried to run monodevelop...well RPi is not enough fast (:

Also tried to run gpio ported program and encountereg with absance of "libc.so"... I do not even know where to look for libc.so ..
by ChrisSwan
Thu Jun 07, 2012 4:04 pm
Forum: Other projects
Topic: MonoGame on Raspberry Pi...
Replies: 43
Views: 12417

Re: MonoGame on Raspberry Pi...

Hi, thought I'd chip in and start trying to help with this. I installed Mono-complete on Pi and that compiles and runs my HelloWorld test app just fine. I unzipped that latest OpenTk (from nightly opentk-2012-03-15.zip) and tried running the already compiled ...
by godFather89
Thu Jun 07, 2012 1:02 pm
Forum: Other programming languages
Topic: Mono (C#) anyone?
Replies: 64
Views: 46007

Re: Mono (C#) anyone?

Sure, here you go:

Code: Select all

#define MAP_SHARED	0x01		/* Share changes */
#define MAP_PRIVATE	0x02		/* Changes are private */
#define MAP_TYPE	0x0f		/* Mask for type of mapping */
#define MAP_FIXED	0x10		/* Interpret addr exactly */
#define MAP_ANONYMOUS	0x20		/* don't use a file */
by x4m
Thu Jun 07, 2012 12:56 pm
Forum: Other programming languages
Topic: Mono (C#) anyone?
Replies: 64
Views: 46007

Re: Mono (C#) anyone?

godFather89 wrote:

Code: Select all

#define ...
Big thanks!
Seems like you missed MAP_SHARED && MAP_FIXED consts, I need them too.
by robsoft
Thu Jun 07, 2012 12:40 pm
Forum: Other programming languages
Topic: Delphi on Raspberry Pi
Replies: 7
Views: 12427

Re: Delphi on Raspberry Pi

... etc all installed and ready to explore). I'd be quite interested in using Delphi on the Pi too. I've recently been picking up bits of Mono (C#) and Python to help get some jobs done on Ubuntu, and my assumption has been that I'd need to use Python, Java or Mono to develop stuff on ...
by godFather89
Thu Jun 07, 2012 12:24 pm
Forum: Other programming languages
Topic: Mono (C#) anyone?
Replies: 64
Views: 46007

Re: Mono (C#) anyone?

Code: Select all

#define PROT_READ	0x1		/* page can be read */
#define PROT_WRITE	0x2		/* page can be written */
#define PROT_EXEC	0x4		/* page can be executed */
#define PROT_NONE	0x0		/* page can not be accessed */

#define O_RDWR		    02
#define O_SYNC		 010000
by x4m
Thu Jun 07, 2012 11:23 am
Forum: Other programming languages
Topic: Mono (C#) anyone?
Replies: 64
Views: 46007

Re: Mono (C#) anyone?

I'm trying to port C program to C#. https://dl.dropbox.com/u/7610280/GpioProgram.cs Everything now compiles but should not work. There are several constants which I can't lookup. //TODO: Find constants for libc open private static int O_RDWR; private static int O_SYNC; //TODO: Find constants for mma...

Go to advanced search