+void start_DMA_upload(uint16_t * src, bool incrementSrc, uint16_t length){
+ // clear
+ DMA2->LIFCR &= ~(0b11111111111111111111111111111111);
+ // value from upsilon
+ DMA2->LIFCR |= 0b00001111011111010000111101111101;
+
+ // set the length
+ DMA2_Stream0->NDTR &= ~(0b11111111111111111111111111111111);
+ DMA2_Stream0->NDTR |= length;
+
+ // set the memory location of the color/pixels
+ DMA2_Stream0->PAR &= ~(0b11111111111111111111111111111111);
+ DMA2_Stream0->PAR |= (uint32_t)src;