Problem using an OLED Display with Standalone Arduino

Hi! For my project, I'm trying to use an arduino to control an OLED display that I got online (from here) . Having successfully got it performing the demo code from the adafruit OLED Library, I attempted to move from an arduino nano that I was using, to a 'bare bones' atmega 328P-PU. This is where the problem is. Having successfully uploaded the 'blink' example to test my ability to upload programmes, I uploaded my OLED programme, however, when run, it just displays 'noise' (See attached Image).

I think this may be because of insufficient power? but do not have the electronics knowledge to try and fix it. To power my circuit, I am using a 9V battery with a 7805 voltage regulator and I was wondering if anyone had come across this problem before, and if so, how was it fixed?

Thanks in Advance.

Thanks for the reply, I just tried that and it still just gives me noise. I also tried it without the voltage regulator powering it from a 5V USB.

I also tried it without the voltage regulator powering it from a 5V USB.

and?

Mark

it didn't work