<commit_before>/*
 * main.cpp
 *
 *  Created on: Feb 8, 2016
 *      Author: tkappenm
 */
#include "xil_types.h"
#include "xil_cache.h"
#include "xparameters.h"
//#include "xspi.h"
#include "bitmap.h"
#include "PmodOLEDrgb.h"
void DemoInitialize();
void DemoRun();

PmodOLEDrgb oled;

int main(void)
{
	Xil_ICacheEnable();
	//Xil_DCacheEnable();
	DemoInitialize();
	DemoRun();
	return 0;
}

void DemoInitialize()
{
	Oledrgb_begin(&oled, XPAR_PMODOLEDRGB_0_AXI_LITE_GPIO_BASEADDR, XPAR_PMODOLEDRGB_0_AXI_LITE_SPI_BASEADDR);
}


void DemoRun()
{
	int i=0;
	while(1){
		if (i==1){
			DrawBitmap(&oled, 0,0,95,63, (uint8_t*)tommy);
			break;
		}
		else {
			DrawBitmap(&oled, 0, 0, 95,63, (uint8_t*)snake1);
			DrawBitmap(&oled, 0, 0, 95,63, (uint8_t*)snake2);
			DrawBitmap(&oled, 0, 0, 95,63, (uint8_t*)snake3);
			DrawBitmap(&oled, 0, 0, 95,63, (uint8_t*)snake2);
		}
		/*for (i =0; i<96; i++){
			DrawRectangle(&oled, 0,0,i,63,BuildRGB(i,i*3,i*4),true,BuildRGB(i,i*3,i*4));
		}*/
	}
}<commit_msg>ip: Pmods: pmodOLEDrgb: edited main.c example file<commit_after>/*
 * main.cpp
 *
 *  Created on: Feb 8, 2016
 *      Author: tkappenm
 */
#include "xil_types.h"
#include "xil_cache.h"
#include "xparameters.h"
//#include "xspi.h"
#include "bitmap.h"
#include "PmodOLEDrgb.h"
void DemoInitialize();
void DemoRun();

PmodOLEDrgb oled;

int main(void)
{
	Xil_ICacheEnable();
	Xil_DCacheEnable();
	DemoInitialize();
	DemoRun();
	return 0;
}

void DemoInitialize()
{
	OLEDrgb_begin(&oled, XPAR_PMODOLEDRGB_0_AXI_LITE_GPIO_BASEADDR, XPAR_PMODOLEDRGB_0_AXI_LITE_SPI_BASEADDR);
}


void DemoRun()
{
	int i=0;
	while(1){
		if (i==1){
			OLEDrgb_DrawBitmap(&oled, 0,0,95,63, (uint8_t*)tommy);
			break;
		}
		else {
			OLEDrgb_DrawBitmap(&oled, 0, 0, 95,63, (uint8_t*)snake1);
			OLEDrgb_DrawBitmap(&oled, 0, 0, 95,63, (uint8_t*)snake2);
			OLEDrgb_DrawBitmap(&oled, 0, 0, 95,63, (uint8_t*)snake3);
			OLEDrgb_DrawBitmap(&oled, 0, 0, 95,63, (uint8_t*)snake2);
		}
		/*for (i =0; i<96; i++){
			OLEDrgb_DrawRectangle(&oled, 0,0,i,63,BuildRGB(i,i*3,i*4),true,BuildRGB(i,i*3,i*4));
		}*/
	}
}
{'fraction_non_alphanumeric': 0.1869879518072289, 'fraction_numerical': 0.05879518072289157, 'mean_word_length': 5.105882352941176, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1565020', 'n_tokens_mistral': 1101, 'n_tokens_neox': 995, 'n_words': 164}